summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-04-18 18:53:05 +0200
committerLean Sheng Tan <sheng.tan@9elements.com>2023-05-13 09:31:39 +0000
commit94efac50eff3993e63547669ddb9cfc339f70ad2 (patch)
tree16ece3a2666cbb137779e1e41f2bca8634c44af5 /src
parentcef0e0ad6fa595d5d6a7b09628b71636c3a20eea (diff)
soc/cavium: Guard gcc specific compiler flag
TEST: BUILD_TIMELESS=1 remains the same. Change-Id: I740b59574303145fc673a97556367daefe8d1540 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74540 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/cavium/common/Makefile.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/cavium/common/Makefile.inc b/src/soc/cavium/common/Makefile.inc
index 3ca81e7896..6fa2c31fb1 100644
--- a/src/soc/cavium/common/Makefile.inc
+++ b/src/soc/cavium/common/Makefile.inc
@@ -5,7 +5,9 @@ ifeq ($(CONFIG_SOC_CAVIUM_COMMON),y)
subdirs-y += pci
# -Wstack-usage doesn't recognize hexadecimal numbers.
+ifeq ($(CONFIG_COMPILER_GCC),y)
CFLAGS_arm64 += -Wstack-usage=$(shell printf "%d" $(CONFIG_STACK_SIZE))
+endif
bootblock-$(CONFIG_BOOTBLOCK_CUSTOM) += bootblock.c