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 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
16 include $(INCLUDE_DIR
)/package.mk
21 DEPENDS
:=@LINUX_2_4_BRCM
22 TITLE
:=Broadcom config utility
24 This package contains an utility to control broadcom
's 'nvram
' config \\\
29 mkdir -p $(PKG_BUILD_DIR)
30 $(CP) ./src/* $(PKG_BUILD_DIR)
33 define Build/InstallDev
34 mkdir -p $(STAGING_DIR)/usr/lib
35 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(STAGING_DIR)/usr/lib/
38 define Build/UninstallDev
39 rm -f $(STAGING_DIR)/usr/lib/lib{nvram,shared}*.so
42 define Package/nvram/install
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
51 $(eval $(call BuildPackage,nvram))