Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # $Id$
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=nvram
  10. PKG_RELEASE:=1
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/nvram
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. DEPENDS:=@TARGET_brcm_2_4
  16. TITLE:=Broadcom config utility
  17. endef
  18. define Package/nvram/description
  19. This package contains an utility to control broadcom's 'nvram' config area.
  20. endef
  21. define Build/Prepare
  22. mkdir -p $(PKG_BUILD_DIR)
  23. $(CP) ./src/* $(PKG_BUILD_DIR)
  24. endef
  25. TARGET_CFLAGS += $(FPIC)
  26. define Build/InstallDev
  27. mkdir -p $(1)/usr/lib
  28. $(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/
  29. endef
  30. define Package/nvram/install
  31. $(INSTALL_DIR) $(1)/etc/init.d
  32. $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
  37. endef
  38. $(eval $(call BuildPackage,nvram))