From 38bee3c8b6ca49031b30e3a8f974fe0690560de3 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 28 Nov 2008 11:56:27 +0000 Subject: This patch fixes the ugly race condition created through build_opt_tbl running twice at the same time, overwriting its output files. This caused a depending rule to produce an object file with no symbols in it. This should silence up the regularly happening build failure messages on the mailing list since we moved to the newer, much faster server. Signed-off-by: Stefan Reinauer Signed-off-by: Patrick Georgi Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3777 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/config/Config.lb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/config') diff --git a/src/config/Config.lb b/src/config/Config.lb index 43d6ecdeb0..a9de434071 100644 --- a/src/config/Config.lb +++ b/src/config/Config.lb @@ -179,21 +179,16 @@ makerule build_opt_tbl action "$(HOSTCC) $(HOSTCFLAGS) $(CPUFLAGS) $< -o $@" end -makerule option_table.c +makerule option_table.h option_table.c depends "build_opt_tbl $(MAINBOARD)/cmos.layout" - action "./build_opt_tbl -b --config $(MAINBOARD)/cmos.layout --header option_table.h" -end - -makerule option_table.h - depends "build_opt_tbl $(MAINBOARD)/cmos.layout" - action "./build_opt_tbl -b --config $(MAINBOARD)/cmos.layout --header option_table.h" + action "./build_opt_tbl -b --config $(MAINBOARD)/cmos.layout --header option_table.h --option option_table.c" end if HAVE_OPTION_TABLE object ./option_table.o end -makerule clean +makerule clean action "rm -f coreboot.* *~" action "rm -f coreboot" action "rm -f ldscript.ld" -- cgit v1.2.3