diff options
| author | Yann Gautier <yann.gautier@st.com> | 2026-05-27 15:34:40 +0200 |
|---|---|---|
| committer | Yann Gautier <yann.gautier@st.com> | 2026-06-26 13:10:48 +0200 |
| commit | 8ae55a5efdc0bef873d5277fb306f99e6c33754f (patch) | |
| tree | 8716dd449460c5fb41c793c9932cd9d6d6ef2cab | |
| parent | 365c2f09a4266bd71f2fc2845da7d3efcb061aa4 (diff) | |
| download | arm-trusted-firmware-8ae55a5efdc0bef873d5277fb306f99e6c33754f.tar.gz arm-trusted-firmware-8ae55a5efdc0bef873d5277fb306f99e6c33754f.zip | |
fix(build): move `USE_GIC_DRIVER` flag management in Makefile
USE_GIC_DRIVER is defined as 0 in make_helpers/defaults.mk.
For platforms not overriding this default parameter, the flag will then
not be defined and will trigger warning when enabling -Wundef flag.
Move the flag in the call add_defines in Makefile. While at it, add it
also in call assert_numerics.
Change-Id: I2d1ea9193e32ea004ed7f78fa51fa63a0da55f35
Signed-off-by: Yann Gautier <yann.gautier@st.com>
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | drivers/arm/gic/gic.mk | 6 |
2 files changed, 3 insertions, 5 deletions
@@ -739,6 +739,7 @@ $(eval $(call assert_numerics,\ IMPDEF_SYSREG_TRAP \ W \ TEST_IO_SHORT_READ_FI_IMAGE_ID \ + USE_GIC_DRIVER \ ))) ifdef KEY_SIZE @@ -938,6 +939,7 @@ $(eval $(call add_defines,\ TEST_IO_SHORT_READ_FI \ TEST_IO_SHORT_READ_FI_IMAGE_ID \ SDEI_SUPPORT \ + USE_GIC_DRIVER \ ))) ifeq (${PLATFORM_REPORT_CTX_MEM_USE}, 1) diff --git a/drivers/arm/gic/gic.mk b/drivers/arm/gic/gic.mk index 8b28f219b..a79537f5f 100644 --- a/drivers/arm/gic/gic.mk +++ b/drivers/arm/gic/gic.mk @@ -1,5 +1,5 @@ # -# Copyright (c) 2025, Arm Limited and Contributors. All rights reserved. +# Copyright (c) 2025-2026, Arm Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -38,7 +38,3 @@ BL31_SOURCES += ${GIC_SOURCES} else BL32_SOURCES += ${GIC_SOURCES} endif - -$(eval $(call add_defines,\ - USE_GIC_DRIVER \ -)) |
