aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Horvath <mark.horvath@arm.com>2020-11-19 18:52:44 +0100
committerSoby Mathew <soby.mathew@arm.com>2020-12-10 10:54:43 +0000
commitf05651489e2f6b2569d02b63ab7b8b30bd3b8f56 (patch)
tree82b15b138c1b28c8569503429c03c01fe245d507
parent8dcc383de8972d14921d8858394d00a85d3fca98 (diff)
downloadtrusted-firmware-m-f05651489e2f6b2569d02b63ab7b8b30bd3b8f56.tar.gz
Build: Fix image signing if only S side is built
If there is no NS side to be built the S side signed binary added to the make targets. In addition in case of NS build if MCUBOOT_IMAGE_NUMBER is equal to 1 NS signed binary is not created, as it is not needed in such a situation. Change-Id: I1125402aaad273946f353ed71558aafa84a9a820 Signed-off-by: Mark Horvath <mark.horvath@arm.com>
-rw-r--r--bl2/ext/mcuboot/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/bl2/ext/mcuboot/CMakeLists.txt b/bl2/ext/mcuboot/CMakeLists.txt
index ef8afe8bab..d113a92de2 100644
--- a/bl2/ext/mcuboot/CMakeLists.txt
+++ b/bl2/ext/mcuboot/CMakeLists.txt
@@ -173,7 +173,6 @@ endif()
if(NS)
add_custom_target(tfm_s_ns_signed_bin
- ALL
SOURCES tfm_s_ns_signed.bin
)
if (MCUBOOT_IMAGE_NUMBER GREATER 1)
@@ -221,5 +220,5 @@ endif()
add_custom_target(signed_images
ALL
- DEPENDS $<$<BOOL:${NS}>:tfm_s_ns_signed_bin>
+ DEPENDS $<IF:$<BOOL:${NS}>,tfm_s_ns_signed_bin,tfm_s_signed_bin>
)