OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2009-2010 Jo-Philipp Wich <xm@subsignal.org> |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_NAME:=nvram |
||
11 | PKG_RELEASE:=10 |
||
12 | |||
13 | PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) |
||
14 | |||
15 | PKG_FLAGS:=nonshared |
||
16 | |||
17 | include $(INCLUDE_DIR)/package.mk |
||
18 | |||
19 | define Package/nvram |
||
20 | SECTION:=utils |
||
21 | CATEGORY:=Base system |
||
22 | TITLE:=Userspace port of the Broadcom NVRAM manipulation tool |
||
23 | MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org> |
||
24 | DEPENDS:=@TARGET_brcm47xx||@TARGET_bcm53xx||@TARGET_ar71xx||@TARGET_ath79 |
||
25 | endef |
||
26 | |||
27 | define Package/nvram/description |
||
28 | This package contains an utility to manipulate NVRAM on Broadcom based devices. |
||
29 | It works on bcm47xx (Linux 2.6) without using the kernel api. |
||
30 | endef |
||
31 | |||
32 | define Build/Configure |
||
33 | endef |
||
34 | |||
35 | define Build/Compile |
||
36 | $(MAKE) -C $(PKG_BUILD_DIR) \ |
||
37 | CC="$(TARGET_CC)" \ |
||
38 | CFLAGS="$(TARGET_CFLAGS) -Wall" \ |
||
39 | LDFLAGS="$(TARGET_LDFLAGS)" |
||
40 | endef |
||
41 | |||
42 | define Package/nvram/install |
||
43 | $(INSTALL_DIR) $(1)/usr/sbin |
||
44 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/ |
||
45 | ifneq ($(CONFIG_TARGET_brcm47xx),) |
||
46 | $(INSTALL_DIR) $(1)/etc/init.d |
||
47 | $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram |
||
48 | endif |
||
49 | endef |
||
50 | |||
51 | $(eval $(call BuildPackage,nvram)) |