Add more license tags with SPDX identifiers
[openwrt/staging/lynxis/omap.git] / package / utils / admswconfig / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=admswconfig
11 PKG_VERSION:=0.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
16 PKG_MD5SUM:=faafd4618f970119a665b11b21ac6a26
17
18 PKG_LICENSE:=GPL-2.0
19 PKG_LICENSE_FILES:=
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/admswconfig
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=ADM5120 Switch configuration tool
27 DEPENDS:=@TARGET_adm5120
28 URL:=http://sharon.esrac.ele.tue.nl/users/pe1rxq/linux-adm/admswconfig/
29 MAINTAINER:=Florian Fainelli <florian@openwrt.org>
30 endef
31
32 define Package/admswconfig/description
33 A program to configure the internal ethernet switch of an ADM5120 processor.
34 You need the corresponding driver for the switch in the kernel.
35 With this program you can configure which ports of the switch belong
36 to the different ethernet devices.
37 endef
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
43 $(TARGET_CC) $(TARGET_CFLAGS) -Os $(PKG_BUILD_DIR)/admswconfig.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
44 endef
45
46 define Package/admswconfig/install
47 $(INSTALL_DIR) $(1)/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/admswconfig $(1)/sbin/
49 $(INSTALL_DIR) $(1)/lib/network/
50 $(INSTALL_DATA) ./files/admswswitch.sh $(1)/lib/network/admswswitch.sh
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./files/admswconfig $(1)/etc/init.d/admswconfig
53 endef
54
55 $(eval $(call BuildPackage,admswconfig))