3e5263b34af361d17749defe1d14729b26d29f31
[openwrt.git] / target / linux / 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 BR2_PACKAGE_NVRAM:=y # does not depend on menuconfig
13 $(eval $(call PKG_template,NVRAM,nvram,$(PKG_RELEASE),$(ARCH)))
14
15 $(PKG_BUILD_DIR)/.prepared:
16 mkdir -p $(PKG_BUILD_DIR)
17 cp -a ./src/* $(PKG_BUILD_DIR)
18 touch $@
19
20 $(PKG_BUILD_DIR)/.built:
21 $(MAKE) -C $(PKG_BUILD_DIR) \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include"
24 touch $@
25
26 $(IPKG_NVRAM):
27 mkdir -p $(IDIR_NVRAM)/usr/lib
28 cp $(PKG_BUILD_DIR)/*.so $(IDIR_NVRAM)/usr/lib
29 mkdir -p $(IDIR_NVRAM)/usr/sbin
30 cp $(PKG_BUILD_DIR)/nvram $(IDIR_NVRAM)/usr/sbin
31 $(RSTRIP) $(IDIR_NVRAM)
32 $(IPKG_BUILD) $(IDIR_NVRAM) $(PACKAGE_DIR)
33
34
35 compile: install-dev
36 install-dev:
37 mkdir -p $(STAGING_DIR)/usr/lib
38 cp $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib
39
40
This page took 0.043179 seconds and 3 git commands to generate.