2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 include $(INCLUDE_DIR
)/package.mk
19 DEPENDS
:=@TARGET_brcm_2_4
20 TITLE
:=Broadcom config utility
23 define Package
/nvram
/description
24 This package contains an utility to control broadcom
's 'nvram
' config area.
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)
32 define Build/InstallDev
34 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
37 define Package/nvram/install
38 $(INSTALL_DIR) $(1)/etc/init.d
39 $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
46 $(eval $(call BuildPackage,nvram))