diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-01-26 11:42:01 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-01 20:20:03 +0900 |
commit | f30ee0b9c07badc226fc36c4ac791ae65b837f45 (patch) | |
tree | b0195ccfe1edf59d3f50985b9f53851f0ea54a6f /make_helpers/build_macros.mk | |
parent | 945b316fa8c562d9f4cb01821fe20fd49dbf9ea3 (diff) | |
download | arm-trusted-firmware-f30ee0b9c07badc226fc36c4ac791ae65b837f45.tar.gz |
Build: move cert_create arguments and dependency to FIP_ADD_PAYLOAD
The fiptool and cert_create use the same command options for images.
It is pretty easy to handle both in the same, symmetrical way.
Move CRT_ARGS and CRT_DEPS to FIP_ADD_PAYLOAD. This refactoring makes
sense because FIP_ADD_PAYLOAD is called from MAKE_BL (when building
images from source), and from FIP_ADD_IMG (when including external
images). (FIP_ADD_PAYLOAD will be renamed later on since it now
caters to both fiptool and cert_create).
We can delete CERT_ADD_CMD_OPT for images in tbbr.mk. It still
needs to call CERT_ADD_CMD_OPT directly for certificates.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'make_helpers/build_macros.mk')
-rw-r--r-- | make_helpers/build_macros.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index 85e575c0a..e0d107fcc 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -107,6 +107,8 @@ endef define FIP_ADD_PAYLOAD $(4)FIP_ARGS += $(2) $(1) $(if $(3),$(4)FIP_DEPS += $(3)) + $(4)CRT_ARGS += $(2) $(1) + $(if $(3),$(4)CRT_DEPS += $(3)) endef # CERT_ADD_CMD_OPT adds a new command line option to the cert_create invocation |