From: Mike Baker Date: Tue, 31 Jan 2006 21:55:38 +0000 (+0000) Subject: fix "make target/linux/package/*-*" targets X-Git-Tag: reboot~31163 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5a2107ed8a8eb20f3b4bac0539f7a19fad7144b7;p=openwrt%2Fstaging%2Fxback.git fix "make target/linux/package/*-*" targets SVN-Revision: 3103 --- diff --git a/openwrt/target/Makefile b/openwrt/target/Makefile index ec3b659724..e066fa9d39 100644 --- a/openwrt/target/Makefile +++ b/openwrt/target/Makefile @@ -35,3 +35,5 @@ linux-imagebuilder: @$(TRACE) target/linux/imagebuilder $(MAKE) -C linux imagebuilder +linux/package/%: + $(MAKE) -C $(TOPDIR)/target/linux $(patsubst linux/%,%,$@) diff --git a/openwrt/target/linux/Makefile b/openwrt/target/linux/Makefile index 2fff3b33af..626587b5b0 100644 --- a/openwrt/target/linux/Makefile +++ b/openwrt/target/linux/Makefile @@ -45,6 +45,8 @@ compile: $(1)/$(2)-compile rebuild: $(1)/$(2)-rebuild $(BIN_DIR)/$(IB_NAME).tar.bz2 install: $(1)/$(2)-image install-ib: $(1)/$(2)-install-ib +package/%: + $(MAKE) -C $(2)-$(1) BOARD="$(2)" $$@ endif .PHONY: $(1)/$(2)-clean $(1)/$(2)-prepare $(1)/$(2)-compile $(1)/$(2)-rebuild $(1)/$(2)-install $(1)/$(2)-image $(1)/$(2)-install-ib diff --git a/openwrt/target/linux/kernel.mk b/openwrt/target/linux/kernel.mk index b1ac9473c7..5406fae20e 100644 --- a/openwrt/target/linux/kernel.mk +++ b/openwrt/target/linux/kernel.mk @@ -114,3 +114,8 @@ clean: rm -f $(STAMP_DIR)/.linux-compile rm -rf $(LINUX_BUILD_DIR) rm -f $(TARGETS) + +package/%: + $(MAKE) -C $(TOPDIR)/target/linux/package \ + $(KPKG_MAKEOPTS) \ + $(patsubst package/%,%,$@)