Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69833 )
Change subject: soc/cavium/common: Don't use Wstack-usage for llvm ......................................................................
soc/cavium/common: Don't use Wstack-usage for llvm
Change-Id: I285dc2287fdb1c20a526b1ccd3da1e20242ba9fe Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/soc/cavium/common/Makefile.inc 1 file changed, 15 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/69833/1
diff --git a/src/soc/cavium/common/Makefile.inc b/src/soc/cavium/common/Makefile.inc index 3ca81e7..44a283e 100644 --- a/src/soc/cavium/common/Makefile.inc +++ b/src/soc/cavium/common/Makefile.inc @@ -5,7 +5,11 @@ subdirs-y += pci
# -Wstack-usage doesn't recognize hexadecimal numbers. -CFLAGS_arm64 += -Wstack-usage=$(shell printf "%d" $(CONFIG_STACK_SIZE)) +ifeq ($(CONFIG_COMPILER_GCC),y) +CFLAGS_arm64 += -Wstack-usage=$(shell printf "%d" $(CONFIG_STACK_SIZE)) +else +CFLAGS_arm64 += -Wframe-larger-than=$(shell printf "%d" $(CONFIG_STACK_SIZE)) +endif
bootblock-$(CONFIG_BOOTBLOCK_CUSTOM) += bootblock.c