summaryrefslogtreecommitdiffstats
path: root/payloads
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2022-02-22 02:09:43 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-06-15 18:06:39 +0000
commite1e762716cf925c621d58163133ed1c3e006a903 (patch)
tree8aaef4f157b030dd221f616bf6b760a11a465154 /payloads
parent27c1da6c26bd6e3c94176695ee94094c215381ce (diff)
downloadcoreboot-e1e762716cf925c621d58163133ed1c3e006a903.tar.gz
coreboot-e1e762716cf925c621d58163133ed1c3e006a903.tar.bz2
coreboot-e1e762716cf925c621d58163133ed1c3e006a903.zip
libpayload/Makefile.payload: Fix CFLAGS
GCC_CFLAGS_<arch> contains only the flags that are GCC specific, iow. flags that don't work with Clang. CFLAGS_<arch>, OTOH, contains all flags that should be used and auto- matically includes GCC_CFLAGS_<arch> if GCC is selected. Change-Id: I5ec15f169d51c7a32ca86e54a98a2ce0e3b51e6d Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/62248 Reviewed-by: Thomas Heijligen <src@posteo.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/Makefile.payload2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/Makefile.payload b/payloads/libpayload/Makefile.payload
index 110d5e9ce350..fa98d8a4de94 100644
--- a/payloads/libpayload/Makefile.payload
+++ b/payloads/libpayload/Makefile.payload
@@ -36,7 +36,7 @@ ARCH ?=
OBJS ?=
CCACHE ?=
-CFLAGS = $(GCC_CFLAGS_$(ARCH))
+CFLAGS = $(CFLAGS_$(ARCH))
CFLAGS += -Os -ffreestanding
CFLAGS += -Wall -Wextra -Wmissing-prototypes -Wvla -Werror