summaryrefslogtreecommitdiff
path: root/make_helpers
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2026-05-27 17:38:39 +0200
committerYann Gautier <yann.gautier@st.com>2026-06-23 18:06:40 +0200
commit43a605dc8d0f8e0524a92c9153a968f4da5e020a (patch)
tree8164cdb53b689d80775abacbcf9739174a01b3c0 /make_helpers
parentc69734c36f503f99b3b8ba7453891f26404debad (diff)
downloadarm-trusted-firmware-43a605dc8d0f8e0524a92c9153a968f4da5e020a.tar.gz
arm-trusted-firmware-43a605dc8d0f8e0524a92c9153a968f4da5e020a.zip
fix(errata-abi): update management of REPORT_ERRATA
For BL2, or when compiling libc, REPORT_ERRATA will not be defined. To avoid warnings when enabling -Wundef flag, force REPORT_ERRATA to 0 for BL2. For libc, when compiling setjmp.S, the issue is that it cannot be defined the same way. As REPORT_ERRATA will only be enabled for BL1, BL31 or BL32, rework the cpu_ops.h file to always check one of those images is used before checking REPORT_ERRATA. Change-Id: Ie4b708cfbb7f8eee9db3254069f179b148c5db6d Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'make_helpers')
-rw-r--r--make_helpers/cflags.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/make_helpers/cflags.mk b/make_helpers/cflags.mk
index 680567396..58ecf38d6 100644
--- a/make_helpers/cflags.mk
+++ b/make_helpers/cflags.mk
@@ -242,6 +242,7 @@ ifeq ($(ENABLE_PIE),1)
endif #(ENABLE_PIE)
BL1_CPPFLAGS += -DREPORT_ERRATA=${DEBUG}
+BL2_CPPFLAGS += -DREPORT_ERRATA=0
BL31_CPPFLAGS += -DREPORT_ERRATA=${DEBUG}
BL32_CPPFLAGS += -DREPORT_ERRATA=${DEBUG}