aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Brand <chris.brand@cypress.com>2020-09-29 11:35:16 -0700
committerTamas Ban <tamas.ban@arm.com>2020-10-01 08:22:54 +0000
commit1ff8dcbc5d45aa1bcc3c015d0160b2f78044b6ce (patch)
tree82c7622bb28462438d2c25821632393df46983b1 /lib
parent7267bfd7f33de07deb80aefcb0c70ef6bf1abbe9 (diff)
downloadtrusted-firmware-m-1ff8dcbc5d45aa1bcc3c015d0160b2f78044b6ce.tar.gz
Build: Only get mcuboot code if we need it
If BL2 is OFF, we won't be using the mcuboot code at all, so there's no point in downloading it. Change-Id: I37403ea6892f39a2dc88436b14b47b787da92a86 Signed-off-by: Chris Brand <chris.brand@cypress.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ext/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ext/CMakeLists.txt b/lib/ext/CMakeLists.txt
index 569ed2eeb..25277d7c2 100644
--- a/lib/ext/CMakeLists.txt
+++ b/lib/ext/CMakeLists.txt
@@ -10,7 +10,9 @@ add_subdirectory(qcbor)
add_subdirectory(t_cose)
add_subdirectory(mbedcrypto)
add_subdirectory(tf-m-tests)
-add_subdirectory(mcuboot)
+if(BL2)
+ add_subdirectory(mcuboot)
+endif()
if(TEST_PSA_API)
add_subdirectory(psa_arch_tests)
endif()