From f2e1d0ae9a5f0a96c0a9029c9fd93020216bfe66 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Wed, 25 Sep 2019 08:47:43 +0200 Subject: soc/cavium/common/Makefile: Convert STACK_SIZE value to decimal STACK_SIZE value needs to be changed from hex to decimal, since -Wstack-usage doesn't recognize hexadecimal numbers anymore. Change-Id: I73606d347194af5de5882a3387a4a5db17f9d94b Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/35593 Reviewed-by: Angel Pons Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- src/soc/cavium/common/Makefile.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc/cavium') 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 -- cgit v1.2.3