From aeeafc08609bf2f28f603e641340946b5657f86e Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 15 Apr 2014 20:14:21 +0200 Subject: sconfig: Fix build dependencies In some cases the build system tried to build main.c before copying the various "shipped" files (lex/yacc output) where the place the compiler expects them. Make the dependency explicit. Change-Id: Iacef5292aadb9fe7bc967aa4ab5ee6c9fe4df3d7 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/5510 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/sconfig/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') diff --git a/util/sconfig/Makefile.inc b/util/sconfig/Makefile.inc index f3e8bdab10..c6ba90f450 100644 --- a/util/sconfig/Makefile.inc +++ b/util/sconfig/Makefile.inc @@ -41,3 +41,5 @@ $(objutil)/sconfig/%: $(top)/util/sconfig/%_shipped $(objutil)/sconfig/sconfig: $(addprefix $(objutil)/sconfig/,$(sconfigobj)) printf " HOSTCC $(subst $(obj)/,,$(@)) (link)\n" $(HOSTCC) $(SCONFIGFLAGS) -o $@ $(addprefix $(objutil)/sconfig/,$(sconfigobj)) + +$(addprefix $(objutil)/sconfig/,$(sconfigobj)) : $(objutil)/sconfig/sconfig.tab.h $(objutil)/sconfig/sconfig.tab.c $(objutil)/sconfig/lex.yy.c -- cgit v1.2.3