From c2086457307204726be11ab4cbe55cb5013ea569 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Fri, 28 Aug 2026 14:27:12 +0200 Subject: 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 --- make_helpers/build_macros.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3