aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-27 10:39:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-04-27 10:39:03 +0000
commit0675a35182622616086100b08d863b00efee111d (patch)
treedf6d88090f23a54a88d6a08d6ed2b587cbe14c26
parent59b233cb0194b1c95e0358614ef2ed36592480a3 (diff)
downloadupstream-0675a35182622616086100b08d863b00efee111d.tar.gz
upstream-0675a35182622616086100b08d863b00efee111d.tar.bz2
upstream-0675a35182622616086100b08d863b00efee111d.zip
make sure that at least sed is built before kernel_menuconfig/kernel_oldconfig is executed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15433 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--include/toplevel.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 9dfc9dfc2f..dd8fcd6f30 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -82,10 +82,19 @@ menuconfig: scripts/config/mconf prepare-tmpinfo FORCE
fi
$< Config.in
-kernel_oldconfig: .config FORCE
+prepare_kernel_conf: .config FORCE
+
+ifeq ($(wildcard staging_dir/host/bin/sed),)
+ prepare_kernel_conf:
+ @+$(SUBMAKE) -r tools/sed/install
+else
+ prepare_kernel_conf: ;
+endif
+
+kernel_oldconfig: prepare_kernel_conf
$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux oldconfig
-kernel_menuconfig: .config FORCE
+kernel_menuconfig: prepare_kernel_conf
$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux menuconfig
tmp/.prereq-build: include/prereq-build.mk