Makefile 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. 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))