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>
32 lines
910 B
Makefile
32 lines
910 B
Makefile
ramstage-y += printk.c
|
|
ramstage-y += console.c
|
|
ramstage-y += vtxprintf.c
|
|
ramstage-y += vsprintf.c
|
|
ramstage-y += post.c
|
|
ramstage-y += die.c
|
|
|
|
smm-y += printk.c
|
|
smm-y += vtxprintf.c
|
|
smm-$(CONFIG_SMM_TSEG) += die.c
|
|
|
|
romstage-$(CONFIG_EARLY_CONSOLE) += vtxprintf.c
|
|
romstage-y += console.c
|
|
romstage-y += post.c
|
|
romstage-y += die.c
|
|
|
|
bootblock-$(CONFIG_EARLY_CONSOLE) += vtxprintf.c
|
|
bootblock-y += console.c
|
|
bootblock-y += die.c
|
|
|
|
ramstage-$(CONFIG_CONSOLE_SERIAL8250) += uart8250_console.c
|
|
ramstage-$(CONFIG_CONSOLE_SERIAL8250MEM) += uart8250mem_console.c
|
|
ramstage-$(CONFIG_USBDEBUG) += usbdebug_console.c
|
|
ramstage-$(CONFIG_CONSOLE_LOGBUF) += logbuf_console.c
|
|
ramstage-$(CONFIG_CONSOLE_NE2K) += ne2k_console.c
|
|
ramstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c
|
|
|
|
|
|
$(obj)/console/console.ramstage.o : $(obj)/build.h
|
|
$(obj)/console/console.romstage.o : $(obj)/build.h
|
|
$(obj)/console/console.bootblock.o : $(obj)/build.h
|