fix kmod build after target/linux reorg
[openwrt.git] / target / linux / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3 include ../rules.mk
4
5 package-y += base-files
6 package-$(BR2_PACKAGE_KMOD_ALSA) += alsa
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-$(BR2_PACKAGE_KMOD_DIAG) += diag
19 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
20
21 bcm43xx-dscape-compile: ieee80211-dscape-compile
22 wlcompat-compile: base-files-compile
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 KPKG_MAKEOPTS += BUILD_DIR="$(LINUX_BUILD_DIR)"
31
32 %-prepare:
33 @$(START_TRACE) "target/linux/package/$(patsubst %-prepare,%,$@)/prepare: "
34 $(MAKE) -C $(patsubst %-prepare,%,$@) \
35 $(KPKG_MAKEOPTS) \
36 prepare
37 @$(CMD_TRACE) " done"
38 @$(END_TRACE)
39
40 %-compile:
41 @$(START_TRACE) "target/linux/package/$(patsubst %-compile,%,$@)-compile: "
42 $(MAKE) -C $(patsubst %-compile,%,$@) \
43 $(KPKG_MAKEOPTS) \
44 compile
45 @$(CMD_TRACE) " done"
46 @$(END_TRACE)
47
48 %-install:
49 @$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
50 $(MAKE) -C $(patsubst %-install,%,$@) \
51 $(KPKG_MAKEOPTS) \
52 install
53 @$(CMD_TRACE) " done"
54 @$(END_TRACE)
55
56 %-clean:
57 @$(START_TRACE) "target/linux/package/$(patsubst %-clean,%,$@)-clean: "
58 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
59 @$(CMD_TRACE) " done"
60 @$(END_TRACE)
61
This page took 0.03889 seconds and 5 git commands to generate.