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>
This commit is contained in:
Elyes HAOUAS 2019-09-25 08:47:43 +02:00 committed by Patrick Georgi
parent 496fedfa2a
commit f2e1d0ae9a
1 changed files with 2 additions and 1 deletions

View File

@ -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