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