Unverified Commit 210d8d8b authored by davidcunado-arm's avatar davidcunado-arm Committed by GitHub
Browse files

Merge pull request #1208 from masahir0y/build

Build: trivial fixes
parents 8d356425 87ebd20d
...@@ -101,7 +101,7 @@ endef ...@@ -101,7 +101,7 @@ endef
# FIP_ADD_PAYLOAD appends the command line arguments required by fiptool # FIP_ADD_PAYLOAD appends the command line arguments required by fiptool
# to package a new payload. Optionally, it adds the dependency on this payload # to package a new payload. Optionally, it adds the dependency on this payload
# $(1) = payload filename (i.e. bl31.bin) # $(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) # $(3) = fip target dependency (optional) (i.e. bl31)
define FIP_ADD_PAYLOAD define FIP_ADD_PAYLOAD
$(eval FIP_ARGS += $(2) $(1)) $(eval FIP_ARGS += $(2) $(1))
...@@ -121,14 +121,15 @@ endef ...@@ -121,14 +121,15 @@ endef
# using a build option. It also adds a dependency on the image file, aborting # using a build option. It also adds a dependency on the image file, aborting
# the build if the file does not exist. # the build if the file does not exist.
# $(1) = build option to specify the image filename (SCP_BL2, BL33, etc) # $(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: # Example:
# $(eval $(call FIP_ADD_IMG,BL33,--bl33)) # $(eval $(call FIP_ADD_IMG,BL33,--nt-fw))
define FIP_ADD_IMG define FIP_ADD_IMG
CRT_DEPS += check_$(1) CRT_DEPS += check_$(1)
FIP_DEPS += check_$(1) FIP_DEPS += check_$(1)
$(call FIP_ADD_PAYLOAD,$(value $(1)),$(2)) $(call FIP_ADD_PAYLOAD,$(value $(1)),$(2))
.PHONY: check_$(1)
check_$(1): check_$(1):
$$(if $(value $(1)),,$$(error "Platform '${PLAT}' requires $(1). Please set $(1) to point to the right file")) $$(if $(value $(1)),,$$(error "Platform '${PLAT}' requires $(1). Please set $(1) to point to the right file"))
endef endef
...@@ -154,14 +155,15 @@ endef ...@@ -154,14 +155,15 @@ endef
# FWU_FIP_ADD_IMG allows the platform to pack a binary image in the FWU FIP # 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) # $(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: # Example:
# $(eval $(call FWU_FIP_ADD_IMG,BL2U,--bl2u)) # $(eval $(call FWU_FIP_ADD_IMG,BL2U,--ap-fwu-cfg))
define FWU_FIP_ADD_IMG define FWU_FIP_ADD_IMG
FWU_CRT_DEPS += check_$(1) FWU_CRT_DEPS += check_$(1)
FWU_FIP_DEPS += check_$(1) FWU_FIP_DEPS += check_$(1)
$(call FWU_FIP_ADD_PAYLOAD,$(value $(1)),$(2)) $(call FWU_FIP_ADD_PAYLOAD,$(value $(1)),$(2))
.PHONY: check_$(1)
check_$(1): check_$(1):
$$(if $(value $(1)),,$$(error "Platform '${PLAT}' requires $(1). Please set $(1) to point to the right file")) $$(if $(value $(1)),,$$(error "Platform '${PLAT}' requires $(1). Please set $(1) to point to the right file"))
endef endef
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment