[coreboot-gerrit] Patch set updated for coreboot: d3a4148 qemu-i440fx: Ignore missing prototype for entry point main()
Edward O'Callaghan (eocallaghan@alterapraxis.com)
gerrit at coreboot.org
Fri Feb 21 11:03:59 CET 2014
Edward O'Callaghan (eocallaghan at alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5272
-gerrit
commit d3a41480fbdffc62f9cb100c1ba012db7b50139e
Author: Edward O'Callaghan <eocallaghan at 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 at 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"
More information about the coreboot-gerrit
mailing list