summaryrefslogtreecommitdiffstats
path: root/src/soc/cavium/common/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/cavium/common/Makefile.inc')
-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 3ca81e78961e..6fa2c31fb1ae 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