1 # Main makefile for the packages
2 include $(TOPDIR
)/rules.mk
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
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
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
))
24 MAKEOPTS
:= BOARD
="$(BOARD)" \
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)"
35 $(MAKE
) -C
$(patsubst %-prepare
,%,$@
) \
40 $(MAKE
) -C
$(patsubst %-compile
,%,$@
) \
45 $(MAKE
) -C
$(patsubst %-install,%,$@
) \
50 @
$(MAKE
) -C
$(patsubst %-clean,%,$@
) clean