2 # Copyright (C) 2009 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
10 PKG_NAME
:=nvram-brcm47xx
13 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
15 include $(INCLUDE_DIR
)/package.mk
17 define Package
/nvram-brcm47xx
20 TITLE
:=Userspace port of the Broadcom NVRAM manipulation tool
21 DEPENDS
:=@TARGET_brcm47xx
24 define Package
/nvram-brcm47xx
/description
25 This package contains an utility to manipulate NVRAM on Broadcom based devices.
29 mkdir
-p
$(PKG_BUILD_DIR
)
30 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
33 define Build
/Configure
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
39 CFLAGS
="$(TARGET_CFLAGS) -Wall" \
40 LDFLAGS
="$(TARGET_LDFLAGS)"
43 define Package
/nvram-brcm47xx
/install
44 $(INSTALL_DIR
) $(1)/etc
/init.d
45 $(INSTALL_BIN
) .
/files
/nvram.init
$(1)/etc
/init.d
/nvram
46 $(INSTALL_DIR
) $(1)/usr
/sbin
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/nvram
$(1)/usr
/sbin
/
48 $(INSTALL_DIR
) $(1)/usr
/lib
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/libnvram.so
.0.1 $(1)/usr
/lib
/
52 $(eval
$(call BuildPackage
,nvram-brcm47xx
))