From 6325ce2ddd68ed2f913adcbd22fddc90dcbc36cb Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Wed, 10 Jul 2019 16:46:34 -0600 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/34242 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Patrick Georgi --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 317a8eb1cf..f0a22a5279 100644 --- a/Makefile +++ b/Makefile @@ -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)