update linux 2.6 config for pf-ring
[openwrt.git] / target / linux / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3
4 ifneq ($(BOARD),ar7)
5 package-$(BR2_PACKAGE_KMOD_ALSA) += alsa
6 endif
7 package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
8 package-$(BR2_PACKAGE_KMOD_HOSTAP) += hostap
9 package-$(BR2_PACKAGE_KMOD_MINI_FO) += mini_fo
10 package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
11 package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
12 package-$(BR2_PACKAGE_KMOD_MADWIFI) += madwifi
13 package-y += base-files
14
15 ifeq ($(BOARD)-$(KERNEL),brcm-2.4)
16 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
17 package-$(BR2_PACKAGE_KMOD_DIAG) += diag
18 wlcompat-compile: base-files-compile
19 endif
20
21 all: compile install
22 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
23 prepare: $(patsubst %,%-prepare,$(package-y) $(package-m))
24 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
25 install: $(patsubst %,%-install,$(package-y))
26
27 MAKEOPTS:= BOARD="$(BOARD)" \
28 KERNEL="$(KERNEL)" \
29 IPKG="$(IPKG)" \
30 TARGET_DIR="$(TARGET_DIR)" \
31 BUILD_DIR="$(BUILD_DIR)" \
32 KERNEL_DIR="$(KERNEL_DIR)" \
33 LINUX_VERSION="$(LINUX_VERSION)" \
34 KERNEL_RELEASE="$(KERNEL_RELEASE)"
35
36
37 %-prepare:
38 @$(START_TRACE) "target/linux/package/$(patsubst %-prepare,%,$@)/prepare: "
39 $(MAKE) -C $(patsubst %-prepare,%,$@) \
40 $(MAKEOPTS) \
41 prepare
42 @$(CMD_TRACE) " done"
43 @$(END_TRACE)
44
45 %-compile:
46 @$(START_TRACE) "target/linux/package/$(patsubst %-compile,%,$@)-compile: "
47 $(MAKE) -C $(patsubst %-compile,%,$@) \
48 $(MAKEOPTS) \
49 compile
50 @$(CMD_TRACE) " done"
51 @$(END_TRACE)
52
53 %-install:
54 @$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
55 $(MAKE) -C $(patsubst %-install,%,$@) \
56 $(MAKEOPTS) \
57 install
58 @$(CMD_TRACE) " done"
59 @$(END_TRACE)
60
61 %-clean:
62 @$(START_TRACE) "target/linux/package/$(patsubst %-clean,%,$@)-clean: "
63 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
64 @$(CMD_TRACE) " done"
65 @$(END_TRACE)
66
This page took 0.04388 seconds and 5 git commands to generate.