From d935f039382a32cd49722235d4186db652f1b56b Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 5 Dec 2013 20:17:36 +0100 Subject: sconfig: avoid regenerating the binary all the time This makes USE_XARGS-abuild unhappy due to races Change-Id: I1237468366c7f8af7eacd572c2bd32df9a3d58ca Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/4486 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- util/sconfig/Makefile.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/sconfig/Makefile.inc b/util/sconfig/Makefile.inc index 97a445f037..f3e8bdab10 100644 --- a/util/sconfig/Makefile.inc +++ b/util/sconfig/Makefile.inc @@ -8,7 +8,10 @@ SCONFIGFLAGS += -I$(top)/util/sconfig -I$(objutil)/sconfig $(objutil)/sconfig: mkdir -p $@ -$(objutil)/sconfig/%.o: util/sconfig/%.c +$(objutil)/sconfig/.generated: $(objutil)/sconfig + touch $@ + +$(objutil)/sconfig/%.o: util/sconfig/%.c | $(objutil)/sconfig/.generated printf " HOSTCC $(subst $(obj)/,,$(@))\n" $(HOSTCC) $(SCONFIGFLAGS) $(HOSTCFLAGS) -c -o $@ $< @@ -35,6 +38,6 @@ $(objutil)/sconfig/%: $(top)/util/sconfig/%_shipped mkdir -p $(dir $@) cp $< $@ -$(objutil)/sconfig/sconfig: $(objutil)/sconfig $(addprefix $(objutil)/sconfig/,$(sconfigobj)) +$(objutil)/sconfig/sconfig: $(addprefix $(objutil)/sconfig/,$(sconfigobj)) printf " HOSTCC $(subst $(obj)/,,$(@)) (link)\n" $(HOSTCC) $(SCONFIGFLAGS) -o $@ $(addprefix $(objutil)/sconfig/,$(sconfigobj)) -- cgit v1.2.3