diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index e57aa375d88b2012f8fbf56f6cc5038218ff5cef..a4fbc5ac2a1d0609d6cb92036c762c869aae59f8 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -129,6 +129,7 @@ define FIP_ADD_IMG FIP_DEPS += check_$(1) $(call FIP_ADD_PAYLOAD,$(value $(1)),$(2)) +.PHONY: check_$(1) check_$(1): $$(if $(value $(1)),,$$(error "Platform '${PLAT}' requires $(1). Please set $(1) to point to the right file")) endef @@ -162,6 +163,7 @@ define FWU_FIP_ADD_IMG FWU_FIP_DEPS += check_$(1) $(call FWU_FIP_ADD_PAYLOAD,$(value $(1)),$(2)) +.PHONY: check_$(1) check_$(1): $$(if $(value $(1)),,$$(error "Platform '${PLAT}' requires $(1). Please set $(1) to point to the right file")) endef