2 # Copyright (C) 2009-2010 Jo-Philipp Wich <xm@subsignal.org>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
15 include $(INCLUDE_DIR
)/package.mk
20 TITLE
:=Userspace port of the Broadcom NVRAM manipulation tool
21 MAINTAINER
:=Jo-Philipp Wich
<xm@subsignal.org
>
22 DEPENDS
:=@TARGET_brcm47xx||@TARGET_bcm53xx||@TARGET_ar71xx
25 define Package
/nvram
/description
26 This package contains an utility to manipulate NVRAM on Broadcom based devices.
27 It works on bcm47xx
(Linux
2.6) without using the kernel api.
31 mkdir
-p
$(PKG_BUILD_DIR
)
32 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
35 define Build
/Configure
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 CFLAGS
="$(TARGET_CFLAGS) -Wall" \
42 LDFLAGS
="$(TARGET_LDFLAGS)"
45 define Package
/nvram
/install
46 $(INSTALL_DIR
) $(1)/etc
/init.d
47 $(INSTALL_BIN
) .
/files
/nvram.init
$(1)/etc
/init.d
/nvram
48 $(INSTALL_DIR
) $(1)/usr
/sbin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/nvram
$(1)/usr
/sbin
/
52 $(eval
$(call BuildPackage
,nvram
))