upgrade kernel to 2.6.15 final
[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-$(BR2_PACKAGE_KMOD_UEAGLE_ATM) += ueagle-atm
18 package-y += base-files
19 bcm43xx-dscape-compile: ieee80211-dscape-compile
20
21 ifeq ($(BOARD)-$(KERNEL),brcm-2.4)
22 package-$(BR2_PACKAGE_KMOD_DIAG) += diag
23 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
24 wlcompat-compile: base-files-compile
25 endif
26
27 all: compile install
28 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
29 prepare: $(patsubst %,%-prepare,$(package-y) $(package-m))
30 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
31 install: $(patsubst %,%-install,$(package-y))
32
33 MAKEOPTS:= BOARD="$(BOARD)" \
34 KERNEL="$(KERNEL)" \
35 IPKG="$(IPKG)" \
36 TARGET_DIR="$(TARGET_DIR)" \
37 BUILD_DIR="$(BUILD_DIR)" \
38 KERNEL_DIR="$(KERNEL_DIR)" \
39 LINUX_VERSION="$(LINUX_VERSION)" \
40 KERNEL_RELEASE="$(KERNEL_RELEASE)"
41
42
43 %-prepare:
44 @$(START_TRACE) "target/linux/package/$(patsubst %-prepare,%,$@)/prepare: "
45 $(MAKE) -C $(patsubst %-prepare,%,$@) \
46 $(MAKEOPTS) \
47 prepare
48 @$(CMD_TRACE) " done"
49 @$(END_TRACE)
50
51 %-compile:
52 @$(START_TRACE) "target/linux/package/$(patsubst %-compile,%,$@)-compile: "
53 $(MAKE) -C $(patsubst %-compile,%,$@) \
54 $(MAKEOPTS) \
55 compile
56 @$(CMD_TRACE) " done"
57 @$(END_TRACE)
58
59 %-install:
60 @$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
61 $(MAKE) -C $(patsubst %-install,%,$@) \
62 $(MAKEOPTS) \
63 install
64 @$(CMD_TRACE) " done"
65 @$(END_TRACE)
66
67 %-clean:
68 @$(START_TRACE) "target/linux/package/$(patsubst %-clean,%,$@)-clean: "
69 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
70 @$(CMD_TRACE) " done"
71 @$(END_TRACE)
72
This page took 0.044604 seconds and 5 git commands to generate.