summaryrefslogtreecommitdiff
path: root/make_helpers/build_macros.mk
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-12-24 13:08:00 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-12-24 22:45:53 +0900
commit87ebd20d4b8e661c6364db629b141c6a24495f82 (patch)
treec26f5eef3278f299eb72eb8a337c81827df222dc /make_helpers/build_macros.mk
parent1e0c078425405d993f1c80399feb8cc4f6c1f3ad (diff)
Build: specify check_* targets as .PHONY
check_* targets just check necessary command line argument, not build any images. They should be specified as .PHONY. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'make_helpers/build_macros.mk')
-rw-r--r--make_helpers/build_macros.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk
index e57aa375..a4fbc5ac 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