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