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>
This commit is contained in:
Raul E Rangel 2019-07-10 16:46:34 -06:00 committed by Patrick Georgi
parent cf5312b17b
commit 6325ce2ddd
1 changed files with 6 additions and 6 deletions

View File

@ -129,6 +129,12 @@ NOMKDIR:=1
endif endif
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 -include $(TOPLEVEL)/site-local/Makefile.inc
ifeq ($(NOCOMPILE),1) ifeq ($(NOCOMPILE),1)
@ -148,12 +154,6 @@ include $(DOTCONFIG)
# to silence stupid warnings about a file that would be generated anyway. # 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))) $(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 -include .xcompile
ifneq ($(XCOMPILE_COMPLETE),1) ifneq ($(XCOMPILE_COMPLETE),1)