2006-06-27 00:35:46 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-07-21 11:45:36 +00:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nvram
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
2006-06-21 02:32:39 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-07-21 11:45:36 +00:00
|
|
|
|
2006-05-10 19:06:22 +00:00
|
|
|
define Package/nvram
|
2006-09-23 19:28:18 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=@LINUX_2_4_BRCM
|
|
|
|
TITLE:=Broadcom config utility
|
|
|
|
DESCRIPTION:=\
|
|
|
|
This package contains an utility to control broadcom's 'nvram' config \\\
|
|
|
|
area.
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
2005-07-21 11:45:36 +00:00
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
2006-02-01 23:53:19 +00:00
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)
|
2006-05-10 19:06:22 +00:00
|
|
|
endef
|
2005-07-21 11:45:36 +00:00
|
|
|
|
2006-05-31 13:00:11 +00:00
|
|
|
define Build/InstallDev
|
2005-07-22 11:01:30 +00:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
2006-06-18 18:30:40 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(STAGING_DIR)/usr/lib/
|
2006-05-31 13:00:11 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
2006-06-18 18:30:40 +00:00
|
|
|
rm -f $(STAGING_DIR)/usr/lib/lib{nvram,shared}*.so
|
2006-05-31 13:00:11 +00:00
|
|
|
endef
|
2005-07-21 17:41:49 +00:00
|
|
|
|
2006-09-23 19:28:18 +00:00
|
|
|
define Package/nvram/install
|
|
|
|
install -d -m0755 $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
|
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
2006-05-31 13:00:11 +00:00
|
|
|
$(eval $(call BuildPackage,nvram))
|