fix libnvram install into staging dir
[openwrt.git] / openwrt / target / linux / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3
4 package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
5 package-$(BR2_PACKAGE_KMOD_MINI_FO) += mini_fo
6 package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
7 package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
8 package-y += openwrt
9
10 ifeq ($(BOARD),brcm)
11 package-y += nvram
12
13 ifeq ($(LINUX_VERSION),2.4.30)
14 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
15 endif
16
17 nvram-compile: openwrt-compile
18 endif
19
20 all: compile install
21 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
22 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
23 install: $(patsubst %,%-install,$(package-y))
24
25 MAKEOPTS:= BOARD="$(BOARD)" \
26 IPKG="$(IPKG)" \
27 TARGET_DIR="$(TARGET_DIR)" \
28 BUILD_DIR="$(BUILD_DIR)" \
29 KERNEL_DIR="$(KERNEL_DIR)" \
30 LINUX_VERSION="$(LINUX_VERSION)" \
31 KERNEL_RELEASE="$(KERNEL_RELEASE)"
32
33
34 %-prepare:
35 $(MAKE) -C $(patsubst %-prepare,%,$@) \
36 $(MAKEOPTS) \
37 prepare
38
39 %-compile: %-prepare
40 $(MAKE) -C $(patsubst %-compile,%,$@) \
41 $(MAKEOPTS) \
42 compile
43
44 %-install: %-compile
45 $(MAKE) -C $(patsubst %-install,%,$@) \
46 $(MAKEOPTS) \
47 install
48
49 %-clean:
50 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
51
This page took 0.03848 seconds and 5 git commands to generate.