use nvram binary only for 2.4.30 system at the moment
[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 ifeq ($(LINUX_VERSION),2.4.30)
17 BR2_PACKAGE_NVRAM:=y
18 endif
19 endif
20
21 $(eval $(call PKG_template,NVRAM,nvram,$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.prepared:
24 mkdir -p $(PKG_BUILD_DIR)
25 cp -a ./src/* $(PKG_BUILD_DIR)
26 touch $@
27
28 $(PKG_BUILD_DIR)/.built:
29 $(MAKE) -C $(PKG_BUILD_DIR) \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include"
32 touch $@
33
34 $(IPKG_NVRAM):
35 mkdir -p $(IDIR_NVRAM)/usr/lib
36 cp $(PKG_BUILD_DIR)/*.so $(IDIR_NVRAM)/usr/lib
37 mkdir -p $(IDIR_NVRAM)/usr/sbin
38 cp $(PKG_BUILD_DIR)/nvram $(IDIR_NVRAM)/usr/sbin
39 $(RSTRIP) $(IDIR_NVRAM)
40 $(IPKG_BUILD) $(IDIR_NVRAM) $(PACKAGE_DIR)
41
42
43 compile: install-dev
44 install-dev:
45 mkdir -p $(STAGING_DIR)/usr/lib
46 cp $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib
47
48
This page took 0.06132 seconds and 5 git commands to generate.