summaryrefslogtreecommitdiffstats
path: root/src/vendorcode/amd
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-03-23 21:32:13 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-03-25 20:01:30 +0000
commita24bcce321a51c4f2cc3393fcd3ef2a9d4528205 (patch)
treed7d6e49fa766cba9e7e0a943e6825b723a70e26c /src/vendorcode/amd
parent7e397ac4e7601b1e20653b86f95c57e7acc0c713 (diff)
downloadcoreboot-a24bcce321a51c4f2cc3393fcd3ef2a9d4528205.tar.gz
coreboot-a24bcce321a51c4f2cc3393fcd3ef2a9d4528205.tar.bz2
coreboot-a24bcce321a51c4f2cc3393fcd3ef2a9d4528205.zip
vendorcode/amd/agesa: Add CFLAGS required by CLANG
Vendorcode is messy so instead of trying to fix the warnings thrown by clang ignore them on AGESA platforms. Change-Id: I378571c2b7272901761c786c6daec0a403155d4c Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63040 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/vendorcode/amd')
-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 b96af84d8c07..73a87a3c5a6c 100644
--- a/src/vendorcode/amd/agesa/Makefile.inc
+++ b/src/vendorcode/amd/agesa/Makefile.inc
@@ -11,6 +11,11 @@ libagesa-y =
libagesa-generic-ccopts += -D__LIBAGESA__
libagesa-generic-ccopts += -fno-zero-initialized-in-bss
libagesa-generic-ccopts += $(AGESA_INC) $(AGESA_AUTOINCLUDES)
+libagesa-generic-ccopts += -Wno-pragma-pack -Wno-unused-but-set-variable
+libagesa-generic-ccopts += -Wno-implicit-fallthrough
+
+romstage-generic-ccopts += -Wno-pragma-pack
+ramstage-generic-ccopts += -Wno-pragma-pack
AGESA_CFLAGS := -march=k8-sse3 -mtune=k8-sse3 -fno-strict-aliasing