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