summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2013-12-05 20:17:36 +0100
committerPatrick Georgi <patrick@georgi-clan.de>2013-12-05 20:45:57 +0100
commitd935f039382a32cd49722235d4186db652f1b56b (patch)
treeefb34b9d00fcd74dfbc5834ad2bcd679760cce1d /util
parent99451b174a841f62b0e5fbbf157ba9161f3a661b (diff)
downloadcoreboot-d935f039382a32cd49722235d4186db652f1b56b.tar.xz
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 <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/4486 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'util')
-rw-r--r--util/sconfig/Makefile.inc7
1 files changed, 5 insertions, 2 deletions
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))