Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=nvram
  9. PKG_RELEASE:=1
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/nvram
  12. SECTION:=utils
  13. CATEGORY:=Utilities
  14. DEPENDS:=@TARGET_brcm_2_4
  15. TITLE:=Broadcom config utility
  16. endef
  17. define Package/nvram/description
  18. This package contains an utility to control broadcom's 'nvram' config area.
  19. endef
  20. define Build/Prepare
  21. mkdir -p $(PKG_BUILD_DIR)
  22. $(CP) ./src/* $(PKG_BUILD_DIR)
  23. endef
  24. TARGET_CFLAGS += $(FPIC)
  25. define Build/InstallDev
  26. mkdir -p $(1)/usr/lib
  27. $(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/
  28. endef
  29. define Package/nvram/install
  30. $(INSTALL_DIR) $(1)/etc/init.d
  31. $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
  32. $(INSTALL_DIR) $(1)/usr/lib
  33. $(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
  36. endef
  37. $(eval $(call BuildPackage,nvram))