summaryrefslogtreecommitdiff
path: root/src/soc/cavium/common
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-09-25 08:47:43 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-10-04 16:27:36 +0000
commitf2e1d0ae9a5f0a96c0a9029c9fd93020216bfe66 (patch)
treeec5dcf4aace10d2a38fda04389f50091921ebd65 /src/soc/cavium/common
parent496fedfa2abcd1399e203e26565eb19dc3257778 (diff)
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 <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35593 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Patrick Georgi <pgeorgi@google.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.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