From 1e0c078425405d993f1c80399feb8cc4f6c1f3ad Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Sat, 23 Dec 2017 23:56:18 +0900 Subject: [PATCH 1/2] Build: update comment lines for macros Commit 8f0617ef9e46 ("Apply TBBR naming convention to the fip_create options") changed fiptool command options. We often forget to update documentation. Signed-off-by: Masahiro Yamada --- make_helpers/build_macros.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index e1bfbbe705..e57aa375d8 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -101,7 +101,7 @@ endef # FIP_ADD_PAYLOAD appends the command line arguments required by fiptool # to package a new payload. Optionally, it adds the dependency on this payload # $(1) = payload filename (i.e. bl31.bin) -# $(2) = command line option for the specified payload (i.e. --bl31) +# $(2) = command line option for the specified payload (i.e. --soc-fw) # $(3) = fip target dependency (optional) (i.e. bl31) define FIP_ADD_PAYLOAD $(eval FIP_ARGS += $(2) $(1)) @@ -121,9 +121,9 @@ endef # using a build option. It also adds a dependency on the image file, aborting # the build if the file does not exist. # $(1) = build option to specify the image filename (SCP_BL2, BL33, etc) -# $(2) = command line option for fiptool (scp_bl2, bl33, etc) +# $(2) = command line option for fiptool (--scp-fw, --nt-fw, etc) # Example: -# $(eval $(call FIP_ADD_IMG,BL33,--bl33)) +# $(eval $(call FIP_ADD_IMG,BL33,--nt-fw)) define FIP_ADD_IMG CRT_DEPS += check_$(1) FIP_DEPS += check_$(1) @@ -154,9 +154,9 @@ endef # FWU_FIP_ADD_IMG allows the platform to pack a binary image in the FWU FIP # $(1) build option to specify the image filename (BL2U, NS_BL2U, etc) -# $(2) command line option for fiptool (bl2u, ns_bl2u, etc) +# $(2) command line option for fiptool (--ap-fwu-cfg, --fwu, etc) # Example: -# $(eval $(call FWU_FIP_ADD_IMG,BL2U,--bl2u)) +# $(eval $(call FWU_FIP_ADD_IMG,BL2U,--ap-fwu-cfg)) define FWU_FIP_ADD_IMG FWU_CRT_DEPS += check_$(1) FWU_FIP_DEPS += check_$(1) From 87ebd20d4b8e661c6364db629b141c6a24495f82 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Sun, 24 Dec 2017 13:08:00 +0900 Subject: [PATCH 2/2] 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 --- make_helpers/build_macros.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index e57aa375d8..a4fbc5ac2a 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