diff options
author | Raul E Rangel <rrangel@chromium.org> | 2019-07-10 16:46:34 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-08-28 09:22:09 +0000 |
commit | 6325ce2ddd68ed2f913adcbd22fddc90dcbc36cb (patch) | |
tree | 789fbb4694928b6d715ddc6d9328bcbe4d9aa3af | |
parent | cf5312b17bc696927ba1db2bd646cb589ba069a7 (diff) |
Makefile: Move the .xcompile rule out of the if !NOCOMPILE block
Generating the .xcompile file should be possible even without a config.
BUG=b:112267918
TEST=Ran make and verified .xcompile was created
Change-Id: I8075f71e6e3e2c150378818eeff2858c36b35843
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34242
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -129,6 +129,12 @@ NOMKDIR:=1 endif endif +.xcompile: util/xcompile/xcompile + rm -f $@ + $< $(XGCCPATH) > $@.tmp + \mv -f $@.tmp $@ 2> /dev/null + rm -f $@.tmp + -include $(TOPLEVEL)/site-local/Makefile.inc ifeq ($(NOCOMPILE),1) @@ -148,12 +154,6 @@ include $(DOTCONFIG) # 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) |