summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2026-08-28 14:27:12 +0200
committerYann Gautier <yann.gautier@st.com>2026-09-07 13:41:30 +0200
commitc2086457307204726be11ab4cbe55cb5013ea569 (patch)
tree8361748b4ad145457e6d56e005871b3c9964b6ef
parent7d46d400c74f7a1844cd0ee8cc1f4a30be0b9f86 (diff)
downloadarm-trusted-firmware-c2086457307204726be11ab4cbe55cb5013ea569.tar.gz
arm-trusted-firmware-c2086457307204726be11ab4cbe55cb5013ea569.zip
feat(build): introduce BL_FLAGS
This flag is only used by MAKE_C macro, and won't be propageted to other targets like MAKE_C_LIB. This allows handling -Wundef flag, that we want to enable but that is known to bring warnings with some libs (zlib or compiler-rt). Change-Id: I44591e4b9bcfe9803253585cc51ab6a3f5d0e036 Signed-off-by: Yann Gautier <yann.gautier@st.com>
-rw-r--r--make_helpers/build_macros.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk
index f52427ddd..033e7242e 100644
--- a/make_helpers/build_macros.mk
+++ b/make_helpers/build_macros.mk
@@ -407,7 +407,7 @@ $(eval BL_CFLAGS := $($(4)_CFLAGS))
$(OBJ): $(2) $(filter-out %.d,$(MAKEFILE_LIST)) | $$$$(@D)/ $(BL_INCLUDE_DIRS:%=%/)
$$(s)echo " CC $$<"
- $$(q)$($(ARCH)-cc) $$(LTO_CFLAGS) $$(TF_CFLAGS) $(BL_CPPFLAGS) $(BL_CFLAGS) $(call MAKE_DEP,$(DEP),$(OBJ)) -c $$< -o $$@
+ $$(q)$($(ARCH)-cc) $$(LTO_CFLAGS) $$(TF_CFLAGS) $(BL_CPPFLAGS) $(BL_CFLAGS) $$(BL_FLAGS) $(call MAKE_DEP,$(DEP),$(OBJ)) -c $$< -o $$@
-include $(DEP)