From 94efac50eff3993e63547669ddb9cfc339f70ad2 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Tue, 18 Apr 2023 18:53:05 +0200 Subject: soc/cavium: Guard gcc specific compiler flag TEST: BUILD_TIMELESS=1 remains the same. Change-Id: I740b59574303145fc673a97556367daefe8d1540 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/74540 Reviewed-by: Felix Singer Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/soc/cavium/common/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/soc/cavium/common/Makefile.inc b/src/soc/cavium/common/Makefile.inc index 3ca81e7896..6fa2c31fb1 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 -- cgit v1.2.3