From 668b8ccad3a198173b5c778c61e5510891a0e1ef Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 25 Aug 2023 13:09:31 +0200 Subject: libpayload: Skip unknown arguments to clang This compiler argument only exists on gcc. Signed-off-by: Arthur Heymans Change-Id: I10902517c86daedc9853e6f6cac8fcf513211bb2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77436 Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- payloads/libpayload/arch/x86/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'payloads/libpayload/arch') diff --git a/payloads/libpayload/arch/x86/Makefile.inc b/payloads/libpayload/arch/x86/Makefile.inc index 911f9dc91e..653412ef5a 100644 --- a/payloads/libpayload/arch/x86/Makefile.inc +++ b/payloads/libpayload/arch/x86/Makefile.inc @@ -26,7 +26,9 @@ ## SUCH DAMAGE. ## +ifneq ($(CONFIG_LP_COMPILER_LLVM_CLANG),y) CFLAGS += -mpreferred-stack-boundary=2 +endif head.o-y += head.S libc-y += main.c sysinfo.c -- cgit v1.2.3