2009-04-27 12:58:54 +00:00
|
|
|
#
|
2010-05-23 21:55:40 +00:00
|
|
|
# Copyright (C) 2009-2010 Jo-Philipp Wich <xm@subsignal.org>
|
2009-04-27 12:58:54 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nvram
|
2016-05-19 22:56:51 +00:00
|
|
|
PKG_RELEASE:=10
|
2009-04-27 12:58:54 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
2016-04-26 21:09:12 +00:00
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
2009-04-27 12:58:54 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/nvram
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Base system
|
|
|
|
TITLE:=Userspace port of the Broadcom NVRAM manipulation tool
|
2010-09-30 10:48:37 +00:00
|
|
|
MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
|
2020-08-07 13:25:12 +00:00
|
|
|
DEPENDS:=@(TARGET_bcm47xx||TARGET_bcm53xx||TARGET_ath79)
|
2009-04-27 12:58:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nvram/description
|
|
|
|
This package contains an utility to manipulate NVRAM on Broadcom based devices.
|
2010-06-26 20:43:41 +00:00
|
|
|
It works on bcm47xx (Linux 2.6) without using the kernel api.
|
2009-04-27 12:58:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nvram/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
|
2020-02-07 14:42:54 +00:00
|
|
|
ifneq ($(CONFIG_TARGET_bcm47xx),)
|
2016-05-19 22:56:51 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
|
|
|
|
endif
|
2009-04-27 12:58:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,nvram))
|