2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@openwrt
/
17 PKG_MD5SUM
:=faafd4618f970119a665b11b21ac6a26
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/admswconfig
24 TITLE
:=ADM5120 Switch configuration tool
25 DEPENDS
:=@TARGET_ADM5120||TARGET_ADM5120EB
26 URL
:=http
://sharon.esrac.ele.tue.nl
/users
/pe1rxq
/linux-adm
/admswconfig
/
29 define Package
/admswconfig
/description
30 A program to configure the internal ethernet switch of an ADM5120 processor.
31 You need the corresponding driver for the switch in the kernel.
32 With this program you can configure which ports of the switch belong
33 to the different ethernet devices.
36 define Build
/Configure
40 $(TARGET_CC
) $(TARGET_CFLAGS
) -Os
$(PKG_BUILD_DIR
)/admswconfig.c
-o
$(PKG_BUILD_DIR
)/$(PKG_NAME
)
43 define Package
/admswconfig
/install
44 $(INSTALL_DIR
) $(1)/sbin
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/admswconfig
$(1)/sbin
/
48 $(eval
$(call BuildPackage
,admswconfig
))