2006-06-27 03:35:46 +03: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 14:45:36 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nvram
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-07-21 14:45:36 +03:00
|
|
|
|
2006-05-10 22:06:22 +03:00
|
|
|
define Package/nvram
|
2006-09-23 22:28:18 +03:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2007-09-08 22:55:42 +03:00
|
|
|
DEPENDS:=@TARGET_brcm_2_4
|
2006-09-23 22:28:18 +03:00
|
|
|
TITLE:=Broadcom config utility
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nvram/description
|
|
|
|
This package contains an utility to control broadcom's 'nvram' config area.
|
2006-05-10 22:06:22 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
2005-07-21 14:45:36 +03:00
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)
|
2006-05-10 22:06:22 +03:00
|
|
|
endef
|
2005-07-21 14:45:36 +03:00
|
|
|
|
2008-08-07 01:10:29 +03:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-05-31 16:00:11 +03:00
|
|
|
define Build/InstallDev
|
2007-09-28 04:45:11 +03:00
|
|
|
mkdir -p $(1)/usr/lib
|
2008-04-07 03:24:19 +03:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/
|
2006-05-31 16:00:11 +03:00
|
|
|
endef
|
|
|
|
|
2006-09-23 22:28:18 +03:00
|
|
|
define Package/nvram/install
|
2007-06-27 08:26:20 +03:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-04-07 03:24:19 +03:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
|
2006-09-23 22:28:18 +03:00
|
|
|
endef
|
|
|
|
|
2006-05-31 16:00:11 +03:00
|
|
|
$(eval $(call BuildPackage,nvram))
|