Makefile 1.5 KB

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