diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-04-18 18:53:05 +0200 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-05-13 09:31:39 +0000 |
commit | 94efac50eff3993e63547669ddb9cfc339f70ad2 (patch) | |
tree | 16ece3a2666cbb137779e1e41f2bca8634c44af5 /src/soc/cavium/common | |
parent | cef0e0ad6fa595d5d6a7b09628b71636c3a20eea (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/soc/cavium/common')
-rw-r--r-- | src/soc/cavium/common/Makefile.inc | 2 |
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 |