1
0

Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=admswconfig
  9. PKG_VERSION:=0.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
  13. PKG_HASH:=37b4409ea2105520b4a7327e53c3210251000ddf58f81a8e4c19e6ff9d615afe
  14. PKG_FLAGS:=nonshared
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/admswconfig
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. TITLE:=ADM5120 Switch configuration tool
  20. DEPENDS:=@TARGET_adm5120
  21. URL:=http://sharon.esrac.ele.tue.nl/users/pe1rxq/linux-adm/admswconfig/
  22. MAINTAINER:=Florian Fainelli <florian@openwrt.org>
  23. endef
  24. define Package/admswconfig/description
  25. A program to configure the internal ethernet switch of an ADM5120 processor.
  26. You need the corresponding driver for the switch in the kernel.
  27. With this program you can configure which ports of the switch belong
  28. to the different ethernet devices.
  29. endef
  30. define Build/Configure
  31. endef
  32. define Build/Compile
  33. $(TARGET_CC) $(TARGET_CFLAGS) -Os $(PKG_BUILD_DIR)/admswconfig.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
  34. endef
  35. define Package/admswconfig/install
  36. $(INSTALL_DIR) $(1)/sbin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/admswconfig $(1)/sbin/
  38. $(INSTALL_DIR) $(1)/lib/network/
  39. $(INSTALL_DATA) ./files/admswswitch.sh $(1)/lib/network/admswswitch.sh
  40. $(INSTALL_DIR) $(1)/etc/init.d
  41. $(INSTALL_BIN) ./files/admswconfig $(1)/etc/init.d/admswconfig
  42. endef
  43. $(eval $(call BuildPackage,admswconfig))