diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-02-27 07:34:24 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-02-27 07:34:24 +0000 |
commit | 379dc5c11f39910e77f695df256719db7fda58ad (patch) | |
tree | 8cafbf10d274aa3e30eac91e0441d39f1bf2b03d /include/toplevel.mk | |
parent | 03db988eaac12c110f3effe83c5039c548fb2fe9 (diff) | |
download | master-31e0f0ae-379dc5c11f39910e77f695df256719db7fda58ad.tar.gz master-31e0f0ae-379dc5c11f39910e77f695df256719db7fda58ad.tar.bz2 master-31e0f0ae-379dc5c11f39910e77f695df256719db7fda58ad.zip |
build: move tmp/.prereq-build to staging_dir/host to gracefully handle staging_dir deletion
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44551
Diffstat (limited to 'include/toplevel.mk')
-rw-r--r-- | include/toplevel.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk index 67357b033a..2e13f623dc 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -53,7 +53,7 @@ else endif ifeq ($(FORCE),) - .config scripts/config/conf scripts/config/mconf: tmp/.prereq-build + .config scripts/config/conf scripts/config/mconf: staging_dir/host/.prereq-build endif SCAN_COOKIE?=$(shell echo $$$$) @@ -66,7 +66,7 @@ ULIMIT_FIX=_limit=`ulimit -n`; [ "$$_limit" = "unlimited" -o "$$_limit" -ge 1024 prepare-mk: FORCE ; prepare-tmpinfo: FORCE - @+$(MAKE) -r -s tmp/.prereq-build $(PREP_MK) + @+$(MAKE) -r -s staging_dir/host/.prereq-build $(PREP_MK) mkdir -p tmp/info $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="packageinfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPS="$(TOPDIR)/include/package*.mk $(TOPDIR)/overlay/*/*.mk" SCAN_DEPTH=5 SCAN_EXTRA="" $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPS="profiles/*.mk $(TOPDIR)/include/kernel*.mk $(TOPDIR)/include/target.mk" SCAN_DEPTH=2 SCAN_EXTRA="" SCAN_MAKEOPTS="TARGET_BUILD=1" @@ -136,7 +136,7 @@ kernel_menuconfig: prepare_kernel_conf kernel_nconfig: prepare_kernel_conf $(_SINGLE)$(NO_TRACE_MAKE) -C target/linux nconfig -tmp/.prereq-build: include/prereq-build.mk +staging_dir/host/.prereq-build: include/prereq-build.mk mkdir -p tmp rm -f tmp/.host.mk @$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prereq-build.mk prereq 2>/dev/null || { \ @@ -202,7 +202,7 @@ distclean: @$(_SINGLE)$(SUBMAKE) -C scripts/config clean ifeq ($(findstring v,$(DEBUG)),) - .SILENT: symlinkclean clean dirclean distclean config-clean download help tmpinfo-clean .config scripts/config/mconf scripts/config/conf menuconfig tmp/.prereq-build tmp/.prereq-package prepare-tmpinfo + .SILENT: symlinkclean clean dirclean distclean config-clean download help tmpinfo-clean .config scripts/config/mconf scripts/config/conf menuconfig staging_dir/host/.prereq-build tmp/.prereq-package prepare-tmpinfo endif .PHONY: help FORCE .NOTPARALLEL: |