revert my changes. didn't work
[openwrt.git] / package / nvram / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=nvram
6 PKG_RELEASE:=1
7
8 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
9
10 include $(TOPDIR)/package/rules.mk
11
12 # does not depend on menuconfig
13 ifneq ($(BOARD),brcm)
14 BR2_PACKAGE_NVRAM:=m
15 else
16 BR2_PACKAGE_NVRAM:=y
17 endif
18
19 $(eval $(call PKG_template,NVRAM,nvram,$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.prepared:
22 mkdir -p $(PKG_BUILD_DIR)
23 cp -a ./src/* $(PKG_BUILD_DIR)
24 touch $@
25
26 $(PKG_BUILD_DIR)/.built:
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 $(TARGET_CONFIGURE_OPTS) \
29 CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include"
30 touch $@
31
32 $(IPKG_NVRAM):
33 mkdir -p $(IDIR_NVRAM)/usr/lib
34 cp $(PKG_BUILD_DIR)/*.so $(IDIR_NVRAM)/usr/lib
35 mkdir -p $(IDIR_NVRAM)/usr/sbin
36 cp $(PKG_BUILD_DIR)/nvram $(IDIR_NVRAM)/usr/sbin
37 $(RSTRIP) $(IDIR_NVRAM)
38 $(IPKG_BUILD) $(IDIR_NVRAM) $(PACKAGE_DIR)
39
40
41 compile: install-dev
42 install-dev:
43 mkdir -p $(STAGING_DIR)/usr/lib
44 cp $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib
45
46
This page took 0.045749 seconds and 5 git commands to generate.