Edward O'Callaghan (eocallaghan@alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5272
-gerrit
commit b6eea31187d4be47e425beb2bd0af572e5b01ec8 Author: Edward O'Callaghan eocallaghan@alterapraxis.com Date: Thu Feb 20 16:08:51 2014 +1100
qemu-i440fx: Ignore missing prototype for entry point main()
The main of romstage in qemu-i440fx is called as the entry point in assembler and so should be compiled with -ffreestanding. We should also ignore a missing prototype in this particular case.
Change-Id: Id0ce2348483c6e5388369000451811673f0c4eaa Signed-off-by: Edward O'Callaghan eocallaghan@alterapraxis.com --- src/arch/x86/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc index 4b28697..7362b64 100644 --- a/src/arch/x86/Makefile.inc +++ b/src/arch/x86/Makefile.inc @@ -266,7 +266,7 @@ else
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.pre.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(OPTION_TABLE_H) $(obj)/build.h $(obj)/config.h @printf " CC romstage.inc\n" - $(CC) -MMD $(CFLAGS) -D__PRE_RAM__ -I$(src) -I. -I$(obj) -c -S $< -o $@ + $(CC) -MMD $(CFLAGS) -ffreestanding -Wno-missing-prototypes -D__PRE_RAM__ -I$(src) -I. -I$(obj) -c -S $< -o $@
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(obj)/mainboard/$(MAINBOARDDIR)/romstage.pre.inc @printf " POST romstage.inc\n"