soc/amd/common: Don't set gcc specific options for clang builds

Clang doesn't understand the -Wstack-usage=40960 option.  Replace it
with -Wframe-larger-than=40960.

Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: I7d8b9c26d3fc861615a8553332ed1070974b751b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69662
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Martin Roth 2022-11-15 12:08:30 -07:00 committed by Martin L Roth
parent f48faa06c9
commit c420d538ee
1 changed files with 4 additions and 0 deletions

View File

@ -4,8 +4,12 @@ verstage-generic-ccopts += -I$(src)/soc/amd/common/psp_verstage/include
verstage-generic-ccopts += -D__USER_SPACE__ verstage-generic-ccopts += -D__USER_SPACE__
CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/2lib/include/ CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/2lib/include/
ifeq ($(CONFIG_COMPILER_GCC),y)
# This size should match the size in the linker script. # This size should match the size in the linker script.
CFLAGS_arm += -Wstack-usage=40960 CFLAGS_arm += -Wstack-usage=40960
else
CFLAGS_arm += -Wframe-larger-than=40960
endif
verstage-y += boot_dev.c verstage-y += boot_dev.c
verstage-y += delay.c verstage-y += delay.c