add alsa kernel driver (thanks to David Collet)
[openwrt.git] / openwrt / target / linux / package / Makefile
1 # Main makefile for the packages
2 include $(TOPDIR)/rules.mk
3
4 package-$(BR2_PACKAGE_KMOD_ALSA) += alsa
5 package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
6 package-$(BR2_PACKAGE_KMOD_MINI_FO) += mini_fo
7 package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
8 package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
9 package-$(BR2_PACKAGE_KMOD_MADWIFI) += madwifi
10 package-y += openwrt
11
12 ifeq ($(BOARD)-$(KERNEL),brcm-2.4)
13 package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
14 package-$(BR2_PACKAGE_KMOD_DIAG) += diag
15 wlcompat-compile: openwrt-compile
16 endif
17
18 all: compile install
19 clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
20 prepare: $(patsubst %,%-prepare,$(package-y) $(package-m))
21 compile: $(patsubst %,%-compile,$(package-y) $(package-m))
22 install: $(patsubst %,%-install,$(package-y))
23
24 MAKEOPTS:= BOARD="$(BOARD)" \
25 KERNEL="$(KERNEL)" \
26 IPKG="$(IPKG)" \
27 TARGET_DIR="$(TARGET_DIR)" \
28 BUILD_DIR="$(BUILD_DIR)" \
29 KERNEL_DIR="$(KERNEL_DIR)" \
30 LINUX_VERSION="$(LINUX_VERSION)" \
31 KERNEL_RELEASE="$(KERNEL_RELEASE)"
32
33
34 %-prepare:
35 $(MAKE) -C $(patsubst %-prepare,%,$@) \
36 $(MAKEOPTS) \
37 prepare
38
39 %-compile: %-prepare
40 $(MAKE) -C $(patsubst %-compile,%,$@) \
41 $(MAKEOPTS) \
42 compile
43
44 %-install: %-compile
45 $(MAKE) -C $(patsubst %-install,%,$@) \
46 $(MAKEOPTS) \
47 install
48
49 %-clean:
50 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
51
This page took 0.049465 seconds and 5 git commands to generate.