summaryrefslogtreecommitdiff
path: root/include
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
commita296bdb983b33d48ea573b92fe7a2476437c3b8f (patch)
treed4a9cad010e26ee94bdbdc4f22a5cf48a9e24775 /include
parent8a38ccc1d1d1c66b5cab6d4d98dea27331767810 (diff)
downloadmtk-20170518-a296bdb983b33d48ea573b92fe7a2476437c3b8f.zip
mtk-20170518-a296bdb983b33d48ea573b92fe7a2476437c3b8f.tar.gz
mtk-20170518-a296bdb983b33d48ea573b92fe7a2476437c3b8f.tar.bz2
make sure that at least sed is built before kernel_menuconfig/kernel_oldconfig is executed
SVN-Revision: 15433
Diffstat (limited to 'include')
-rw-r--r--include/toplevel.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 9dfc9df..dd8fcd6 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