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