diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-04-27 10:39:03 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-04-27 10:39:03 +0000 |
commit | f5c5ebc6e0753c95ccfa7dc346cc4bba96552e9d (patch) | |
tree | df6d88090f23a54a88d6a08d6ed2b587cbe14c26 | |
parent | 3620dd0bd5bdd4d18e2dc0dab411ec84dc85295b (diff) |
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.mk | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk index 9dfc9dfc2..dd8fcd6f3 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 |