AGESA: Define extra CFLAGS just once
Change-Id: I91d5a0fa0b5e4575d03eb083fade43f6dbb94c77 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34798 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
cd2aa47a34
commit
dad1cef0c0
@ -12,6 +12,11 @@ libagesa-y =
|
|||||||
libagesa-generic-ccopts += -D__LIBAGESA__
|
libagesa-generic-ccopts += -D__LIBAGESA__
|
||||||
libagesa-generic-ccopts += $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
libagesa-generic-ccopts += $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
||||||
|
|
||||||
|
AGESA_CFLAGS := -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
|
||||||
|
|
||||||
|
CFLAGS_x86_32 += $(AGESA_CFLAGS)
|
||||||
|
CFLAGS_x86_64 += $(AGESA_CFLAGS)
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_ROMSTAGE_X86_32),y)
|
ifeq ($(CONFIG_ARCH_ROMSTAGE_X86_32),y)
|
||||||
$(eval $(call create_class_compiler,libagesa,x86_32))
|
$(eval $(call create_class_compiler,libagesa,x86_32))
|
||||||
else
|
else
|
||||||
|
@ -40,9 +40,6 @@ AGESA_INC += -I$(src)/mainboard/$(MAINBOARDDIR) # OptionsIds.h
|
|||||||
|
|
||||||
BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
||||||
|
|
||||||
CFLAGS_x86_32 += -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
|
|
||||||
CFLAGS_x86_64 += -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
|
|
||||||
|
|
||||||
CPPFLAGS_x86_32 += $(AGESA_INC)
|
CPPFLAGS_x86_32 += $(AGESA_INC)
|
||||||
CPPFLAGS_x86_64 += $(AGESA_INC)
|
CPPFLAGS_x86_64 += $(AGESA_INC)
|
||||||
|
|
||||||
|
@ -40,9 +40,6 @@ AGESA_INC += -I$(src)/mainboard/$(MAINBOARDDIR) # OptionsIds.h
|
|||||||
|
|
||||||
BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
||||||
|
|
||||||
CFLAGS_x86_32 += -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
|
|
||||||
CFLAGS_x86_64 += -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
|
|
||||||
|
|
||||||
CPPFLAGS_x86_32 += $(AGESA_INC)
|
CPPFLAGS_x86_32 += $(AGESA_INC)
|
||||||
CPPFLAGS_x86_64 += $(AGESA_INC)
|
CPPFLAGS_x86_64 += $(AGESA_INC)
|
||||||
|
|
||||||
|
@ -40,9 +40,6 @@ AGESA_INC += -I$(src)/mainboard/$(MAINBOARDDIR) # OptionsIds.h
|
|||||||
|
|
||||||
BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
||||||
|
|
||||||
CFLAGS_x86_32 += -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
|
|
||||||
CFLAGS_x86_64 += -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
|
|
||||||
|
|
||||||
# These are invalid, coreboot proper should not require
|
# These are invalid, coreboot proper should not require
|
||||||
# use of AGESA internal header files.
|
# use of AGESA internal header files.
|
||||||
CPPFLAGS_x86_ANY =
|
CPPFLAGS_x86_ANY =
|
||||||
|
@ -40,9 +40,6 @@ AGESA_INC += -I$(src)/mainboard/$(MAINBOARDDIR) # OptionsIds.h
|
|||||||
|
|
||||||
BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES)
|
||||||
|
|
||||||
CFLAGS_x86_32 += -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
|
|
||||||
CFLAGS_x86_64 += -march=k8-sse3 -mtune=k8-sse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
|
|
||||||
|
|
||||||
# These are invalid, coreboot proper should not require
|
# These are invalid, coreboot proper should not require
|
||||||
# use of AGESA internal header files.
|
# use of AGESA internal header files.
|
||||||
CPPFLAGS_x86_ANY =
|
CPPFLAGS_x86_ANY =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user