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>
diff --git a/lib/ext/CMakeLists.txt b/lib/ext/CMakeLists.txt
index 569ed2e..25277d7 100644
--- a/lib/ext/CMakeLists.txt
+++ b/lib/ext/CMakeLists.txt
@@ -10,7 +10,9 @@
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()