summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2017-01-19 23:20:14 +0100
committerPatrick Georgi <pgeorgi@google.com>2017-01-24 23:22:56 +0100
commit0ffef882d8357b1e14e983829e0a26415ab43b48 (patch)
tree232716a26ea823a947dc03addbdbb72ac2f6a22f /Makefile
parent5e949faec149c8716b6cb92ab3518d04610f7d1d (diff)
downloadcoreboot-0ffef882d8357b1e14e983829e0a26415ab43b48.tar.xz
build system: don't run xcompile or git for %clean/%config targets
It takes a long time for no gain: We don't need to update the submodules, we don't need to fetch the revision, we don't need to find the compilers, when all we want to do is to manipulate the .config file or clean the build directory. Change-Id: Ie1bd446a0d49a81e3cccdb56fe2c43ffd83b6c98 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/18182 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 7801c47160..2c87feb7a7 100644
--- a/Makefile
+++ b/Makefile
@@ -30,16 +30,6 @@
## SUCH DAMAGE.
##
-# in addition to the dependency below, create the file if it doesn't exist
-# to silence stupid warnings about a file that would be generated anyway.
-$(if $(wildcard .xcompile),,$(eval $(shell util/xcompile/xcompile $(XGCCPATH) > .xcompile || rm -f .xcompile)))
-
-.xcompile: util/xcompile/xcompile
- rm -f $@
- $< $(XGCCPATH) > $@.tmp
- \mv -f $@.tmp $@ 2> /dev/null
- rm -f $@.tmp
-
export top := $(CURDIR)
export src := src
export srck := $(top)/util/kconfig
@@ -139,6 +129,16 @@ else
include $(DOTCONFIG)
+# in addition to the dependency below, create the file if it doesn't exist
+# to silence stupid warnings about a file that would be generated anyway.
+$(if $(wildcard .xcompile)$(NOCOMPILE),,$(eval $(shell util/xcompile/xcompile $(XGCCPATH) > .xcompile || rm -f .xcompile)))
+
+.xcompile: util/xcompile/xcompile
+ rm -f $@
+ $< $(XGCCPATH) > $@.tmp
+ \mv -f $@.tmp $@ 2> /dev/null
+ rm -f $@.tmp
+
-include .xcompile
ifneq ($(XCOMPILE_COMPLETE),1)