add bcm43xx
[openwrt.git] / openwrt / 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_BCM43XX_DSCAPE) += bcm43xx-dscape
10 package-$(BR2_PACKAGE_KMOD_IEEE80211_DSCAPE) += ieee80211-dscape
11 package-$(BR2_PACKAGE_KMOD_MADWIFI) += madwifi
12 package-$(BR2_PACKAGE_KMOD_MINI_FO) += mini_fo
13 package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
14 package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
15 package-$(BR2_PACKAGE_KMOD_SPCA5XX) += spca5xx
16 package-$(BR2_PACKAGE_KMOD_SWITCH) += switch
17 package-y += base-files
18 bcm43xx-dscape-compile: ieee80211-dscape-compile
19
20 ifeq ($(BOARD)-$(KERNEL),brcm-2.4)
21 package-$(BR2_PACKAGE_KMOD_DIAG) += diag
22 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
23 wlcompat-compile: base-files-compile
24 endif
25
26 all: compile install
27 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
28 prepare: $(patsubst %,%-prepare,$(package-y) $(package-m))
29 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
30 install: $(patsubst %,%-install,$(package-y))
31
32 MAKEOPTS:= BOARD="$(BOARD)" \
33 KERNEL="$(KERNEL)" \
34 IPKG="$(IPKG)" \
35 TARGET_DIR="$(TARGET_DIR)" \
36 BUILD_DIR="$(BUILD_DIR)" \
37 KERNEL_DIR="$(KERNEL_DIR)" \
38 LINUX_VERSION="$(LINUX_VERSION)" \
39 KERNEL_RELEASE="$(KERNEL_RELEASE)"
40
41
42 %-prepare:
43 @$(START_TRACE) "target/linux/package/$(patsubst %-prepare,%,$@)/prepare: "
44 $(MAKE) -C $(patsubst %-prepare,%,$@) \
45 $(MAKEOPTS) \
46 prepare
47 @$(CMD_TRACE) " done"
48 @$(END_TRACE)
49
50 %-compile:
51 @$(START_TRACE) "target/linux/package/$(patsubst %-compile,%,$@)-compile: "
52 $(MAKE) -C $(patsubst %-compile,%,$@) \
53 $(MAKEOPTS) \
54 compile
55 @$(CMD_TRACE) " done"
56 @$(END_TRACE)
57
58 %-install:
59 @$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
60 $(MAKE) -C $(patsubst %-install,%,$@) \
61 $(MAKEOPTS) \
62 install
63 @$(CMD_TRACE) " done"
64 @$(END_TRACE)
65
66 %-clean:
67 @$(START_TRACE) "target/linux/package/$(patsubst %-clean,%,$@)-clean: "
68 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
69 @$(CMD_TRACE) " done"
70 @$(END_TRACE)
71
This page took 0.048515 seconds and 5 git commands to generate.