summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/cavium/common/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/cavium/common/Makefile.inc b/src/soc/cavium/common/Makefile.inc
index 96e38c3b0c..766c44db63 100644
--- a/src/soc/cavium/common/Makefile.inc
+++ b/src/soc/cavium/common/Makefile.inc
@@ -17,7 +17,8 @@ ifeq ($(CONFIG_SOC_CAVIUM_COMMON),y)
subdirs-y += pci
-CFLAGS_arm64 += -Wstack-usage=$(CONFIG_STACK_SIZE)
+# -Wstack-usage doesn't recognize hexadecimal numbers.
+CFLAGS_arm64 += -Wstack-usage=$(shell printf "%d" $(CONFIG_STACK_SIZE))
bootblock-$(CONFIG_BOOTBLOCK_CUSTOM) += bootblock.c