aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/agesa/Makefile.inc
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-18 17:13:48 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-20 01:32:14 +0000
commitdad1cef0c020420fb81d20fcbeb04c951cfe65c5 (patch)
tree0f2ee6a0e0143b71d4b52bd4a605ecf1b32ec49b /src/vendorcode/amd/agesa/Makefile.inc
parentcd2aa47a340432503ba67672e19931ed2f3296bf (diff)
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>
Diffstat (limited to 'src/vendorcode/amd/agesa/Makefile.inc')
-rw-r--r--src/vendorcode/amd/agesa/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vendorcode/amd/agesa/Makefile.inc b/src/vendorcode/amd/agesa/Makefile.inc
index df34330da8..d672cf4f71 100644
--- a/src/vendorcode/amd/agesa/Makefile.inc
+++ b/src/vendorcode/amd/agesa/Makefile.inc
@@ -12,6 +12,11 @@ libagesa-y =
libagesa-generic-ccopts += -D__LIBAGESA__
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)
$(eval $(call create_class_compiler,libagesa,x86_32))
else