fix "make target/linux/package/*-*" targets
authorMike Baker <mbm@openwrt.org>
Tue, 31 Jan 2006 21:55:38 +0000 (21:55 +0000)
committerMike Baker <mbm@openwrt.org>
Tue, 31 Jan 2006 21:55:38 +0000 (21:55 +0000)
SVN-Revision: 3103

openwrt/target/Makefile
openwrt/target/linux/Makefile
openwrt/target/linux/kernel.mk

index ec3b659724cad9a216f15ff445efaff541579546..e066fa9d393f391eefbda1f346d8402510dd43e6 100644 (file)
@@ -35,3 +35,5 @@ linux-imagebuilder:
        @$(TRACE) target/linux/imagebuilder
        $(MAKE) -C linux imagebuilder
 
+linux/package/%:
+       $(MAKE) -C $(TOPDIR)/target/linux $(patsubst linux/%,%,$@)
index 2fff3b33afa2c15d20947d938ffeda80c9797b1c..626587b5b029b22f69a1b3923fdb11898f09ee96 100644 (file)
@@ -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
index b1ac9473c747d16808d4b02d1d63e9acd95f09ba..5406fae20e9555d22e062764bd13a38288e644fe 100644 (file)
@@ -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/%,%,$@)