imagebuilder: fix parallel building (closes #11117)
[openwrt.git] / package / nvram / Makefile
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:=9
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/nvram
18 SECTION:=utils
19 CATEGORY:=Base system
20 TITLE:=Userspace port of the Broadcom NVRAM manipulation tool
21 MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
22 DEPENDS:=@TARGET_brcm47xx||@TARGET_ar71xx
23 endef
24
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.
28 endef
29
30 define Build/Prepare
31 mkdir -p $(PKG_BUILD_DIR)
32 $(CP) ./src/* $(PKG_BUILD_DIR)/
33 endef
34
35 define Build/Configure
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 CC="$(TARGET_CC)" \
41 CFLAGS="$(TARGET_CFLAGS) -Wall" \
42 LDFLAGS="$(TARGET_LDFLAGS)"
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/libnvram.so.0.1 $(1)/usr/lib/
48 ln -s libnvram.so.0.1 $(1)/usr/lib/libnvram.so
49 endef
50
51 define Package/nvram/install
52 $(INSTALL_DIR) $(1)/etc/init.d
53 $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/libnvram.so.0.1 $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,nvram))
This page took 0.046909 seconds and 5 git commands to generate.