From 080c59549bcfabcfdd8b31f075cb316aeb093332 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 16 Oct 2006 00:47:11 +0000 Subject: [PATCH] support make target/linux/package/*-compile SVN-Revision: 5145 --- openwrt/target/Makefile | 3 +++ openwrt/target/linux/Makefile | 2 ++ openwrt/target/linux/linux-2.4/Makefile | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/openwrt/target/Makefile b/openwrt/target/Makefile index e6156b48bf..b9a94fb373 100644 --- a/openwrt/target/Makefile +++ b/openwrt/target/Makefile @@ -16,6 +16,9 @@ clean: linux-clean utils-clean lzma-clean image_clean image_clean: rm -f $(BIN_DIR)/openwrt-* +linux/package/%: + $(MAKE) -C $(TOPDIR)/target/linux $(patsubst linux/%,%,$@) + %-clean: $(MAKE) -C $(patsubst %-clean,%,$@) clean %-prepare: diff --git a/openwrt/target/linux/Makefile b/openwrt/target/linux/Makefile index f05238b4e9..f3aa67e5a6 100644 --- a/openwrt/target/linux/Makefile +++ b/openwrt/target/linux/Makefile @@ -41,6 +41,8 @@ install-ib: $(1)/$(2)-install-ib endif .PHONY: $(1)/$(2)-clean $(1)/$(2)-prepare $(1)/$(2)-compile $(1)/$(2)-rebuild $(1)/$(2)-install $(1)/$(2)-image $(1)/$(2)-install-ib +package/%: + $(MAKE) -C linux-$(1) BOARD="$(2)" $$@ endef .PHONY: clean prepare compile rebuild install imagebuilder install-ib kernel-install diff --git a/openwrt/target/linux/linux-2.4/Makefile b/openwrt/target/linux/linux-2.4/Makefile index e261deaee8..590ba375cc 100644 --- a/openwrt/target/linux/linux-2.4/Makefile +++ b/openwrt/target/linux/linux-2.4/Makefile @@ -387,3 +387,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/%,%,$@) -- 2.30.2