summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch/x86
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-08-25 13:09:31 +0200
committerMartin L Roth <gaumless@gmail.com>2023-08-26 21:06:30 +0000
commit668b8ccad3a198173b5c778c61e5510891a0e1ef (patch)
tree0059811395bbcd4399dc1d3bf5fa13fd97a1e106 /payloads/libpayload/arch/x86
parent536ea50c53391ec2195d494e2243c6351a70a171 (diff)
libpayload: Skip unknown arguments to clang
This compiler argument only exists on gcc. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I10902517c86daedc9853e6f6cac8fcf513211bb2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77436 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload/arch/x86')
-rw-r--r--payloads/libpayload/arch/x86/Makefile.inc2
1 files changed, 2 insertions, 0 deletions
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