romcc: Use default romcc flags for most boards
Except for one board, the flags can be derived from CONFIG_MMX and CONFIG_SSE. Change-Id: I64a11135ee7ce8676f3422b2377069a3fa78e24d Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/2336 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
f03d22efd7
commit
dbc6ca7aea
@@ -212,7 +212,15 @@ crt0s += $(src)/arch/x86/init/crt0_romcc_epilogue.inc
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ROMCC),y)
|
||||
ROMCCFLAGS ?= -mcpu=p2 -O2
|
||||
ifeq ($(CONFIG_MMX),y)
|
||||
ifeq ($(CONFIG_SSE),y)
|
||||
ROMCCFLAGS := -mcpu=p4 -O2 # MMX, SSE
|
||||
else
|
||||
ROMCCFLAGS := -mcpu=p2 -O2 # MMX, !SSE
|
||||
endif
|
||||
else
|
||||
ROMCCFLAGS := -mcpu=i386 -O2 # !MMX, !SSE
|
||||
endif
|
||||
|
||||
$(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc: $(src)/mainboard/$(MAINBOARDDIR)/romstage.c $(objutil)/romcc/romcc $(OPTION_TABLE_H) $(obj)/build.h $(obj)/config.h
|
||||
printf " ROMCC romstage.inc\n"
|
||||
|
Reference in New Issue
Block a user