2005-05-28 09:17:29 +00:00
|
|
|
# Main makefile for the packages
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2005-10-18 00:00:05 +00:00
|
|
|
ifneq ($(BOARD),ar7)
|
2005-09-29 07:18:31 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_ALSA) += alsa
|
2005-10-18 00:00:05 +00:00
|
|
|
endif
|
2005-05-28 09:17:29 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
|
2005-10-23 13:21:05 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_HOSTAP) += hostap
|
2006-01-05 01:42:16 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_BCM43XX_DSCAPE) += bcm43xx-dscape
|
2005-12-28 13:22:51 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_IEEE80211_DSCAPE) += ieee80211-dscape
|
2005-11-02 22:23:20 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_MADWIFI) += madwifi
|
2005-07-20 23:50:51 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_MINI_FO) += mini_fo
|
2005-05-28 09:17:29 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_OPENSWAN) += openswan
|
2005-11-02 22:23:20 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
|
2005-12-08 22:09:33 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_SPCA5XX) += spca5xx
|
2005-12-25 14:18:55 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_SWITCH) += switch
|
2006-01-05 20:05:39 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_UEAGLE_ATM) += ueagle-atm
|
2005-10-22 20:52:12 +00:00
|
|
|
package-y += base-files
|
2006-01-05 01:42:16 +00:00
|
|
|
bcm43xx-dscape-compile: ieee80211-dscape-compile
|
2005-07-21 11:45:36 +00:00
|
|
|
|
2005-09-10 17:21:57 +00:00
|
|
|
ifeq ($(BOARD)-$(KERNEL),brcm-2.4)
|
2005-09-21 09:55:03 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_DIAG) += diag
|
2005-11-02 22:23:20 +00:00
|
|
|
package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
|
2005-10-22 20:52:12 +00:00
|
|
|
wlcompat-compile: base-files-compile
|
2005-05-28 10:54:32 +00:00
|
|
|
endif
|
2005-07-21 11:45:36 +00:00
|
|
|
|
2005-05-28 09:17:29 +00:00
|
|
|
all: compile install
|
|
|
|
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
2005-09-29 07:18:31 +00:00
|
|
|
prepare: $(patsubst %,%-prepare,$(package-y) $(package-m))
|
2005-05-28 09:17:29 +00:00
|
|
|
compile: $(patsubst %,%-compile,$(package-y) $(package-m))
|
|
|
|
install: $(patsubst %,%-install,$(package-y))
|
|
|
|
|
2005-06-11 15:36:31 +00:00
|
|
|
MAKEOPTS:= BOARD="$(BOARD)" \
|
2005-09-10 17:21:57 +00:00
|
|
|
KERNEL="$(KERNEL)" \
|
2005-07-16 12:56:21 +00:00
|
|
|
IPKG="$(IPKG)" \
|
2005-05-28 10:54:32 +00:00
|
|
|
TARGET_DIR="$(TARGET_DIR)" \
|
2005-05-28 09:17:29 +00:00
|
|
|
BUILD_DIR="$(BUILD_DIR)" \
|
|
|
|
KERNEL_DIR="$(KERNEL_DIR)" \
|
|
|
|
LINUX_VERSION="$(LINUX_VERSION)" \
|
2005-06-11 15:36:31 +00:00
|
|
|
KERNEL_RELEASE="$(KERNEL_RELEASE)"
|
|
|
|
|
|
|
|
|
|
|
|
%-prepare:
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(START_TRACE) "target/linux/package/$(patsubst %-prepare,%,$@)/prepare: "
|
2005-06-11 15:36:31 +00:00
|
|
|
$(MAKE) -C $(patsubst %-prepare,%,$@) \
|
|
|
|
$(MAKEOPTS) \
|
2005-05-28 09:17:29 +00:00
|
|
|
prepare
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(CMD_TRACE) " done"
|
|
|
|
@$(END_TRACE)
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2005-10-22 12:54:17 +00:00
|
|
|
%-compile:
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(START_TRACE) "target/linux/package/$(patsubst %-compile,%,$@)-compile: "
|
2005-05-28 09:17:29 +00:00
|
|
|
$(MAKE) -C $(patsubst %-compile,%,$@) \
|
2005-06-11 15:36:31 +00:00
|
|
|
$(MAKEOPTS) \
|
2005-05-28 09:17:29 +00:00
|
|
|
compile
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(CMD_TRACE) " done"
|
|
|
|
@$(END_TRACE)
|
2005-05-28 09:17:29 +00:00
|
|
|
|
2005-10-22 16:14:30 +00:00
|
|
|
%-install:
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
|
2005-05-28 09:17:29 +00:00
|
|
|
$(MAKE) -C $(patsubst %-install,%,$@) \
|
2005-06-11 15:36:31 +00:00
|
|
|
$(MAKEOPTS) \
|
2005-05-28 09:17:29 +00:00
|
|
|
install
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(CMD_TRACE) " done"
|
|
|
|
@$(END_TRACE)
|
2005-05-28 09:17:29 +00:00
|
|
|
|
|
|
|
%-clean:
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(START_TRACE) "target/linux/package/$(patsubst %-clean,%,$@)-clean: "
|
2005-05-28 09:17:29 +00:00
|
|
|
@$(MAKE) -C $(patsubst %-clean,%,$@) clean
|
2005-10-22 15:10:20 +00:00
|
|
|
@$(CMD_TRACE) " done"
|
|
|
|
@$(END_TRACE)
|
2005-05-28 09:17:29 +00:00
|
|
|
|