Fix race condition building console code

On ARMv7 the console code can also be built into
the bootblock. Currently building the ARM targets
on a reasonably fast machine can fail, because
console.bootblock.o is attempted to build before
build.h is created. This patch adds a specific
rule for the bootblock variant of console.c, to
match the other variants so that the race condition
goes away.

Change-Id: I52e4242c66a02f011ef26b854aa50c2606a1f81f
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2873
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Stefan Reinauer 2013-03-21 13:15:45 -07:00 committed by Patrick Georgi
parent cddcc80048
commit 43e4a80a92
1 changed files with 1 additions and 0 deletions

View File

@ -28,3 +28,4 @@ ramstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
$(obj)/console/console.ramstage.o : $(obj)/build.h $(obj)/console/console.ramstage.o : $(obj)/build.h
$(obj)/console/console.romstage.o : $(obj)/build.h $(obj)/console/console.romstage.o : $(obj)/build.h
$(obj)/console/console.bootblock.o : $(obj)/build.h