Skip to content

Commit a7edb69

Browse files
microbuildermswarowsky
authored andcommitted
lib: ext: Disable t_cose and qcbor if not required
Avoids including `t_cose` and `qcbor` in the build unless the initial attestation secure partition is enabled via the `TFM_PARTITION_INITIAL_ATTESTATION` flag. This is required to avoid automatically downloading QCBOR at build time -- pulled in as a dependency of t_cose -- unless required. This commit should be reverted once an acceptable upstream solution has been found for this situation, and merged there. Signed-off-by: Kevin Townsend <[email protected]> (cherry picked from commit 05bc9f0) Signed-off-by: Markus Swarowsky <[email protected]>
1 parent 4ab34cf commit a7edb69

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/ext/CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
#-------------------------------------------------------------------------------
77
set(FETCHCONTENT_BASE_DIR ${CMAKE_BINARY_DIR}/lib/ext CACHE STRING "" FORCE)
88

9-
add_subdirectory(qcbor)
10-
add_subdirectory(t_cose)
9+
if(TFM_PARTITION_INITIAL_ATTESTATION)
10+
add_subdirectory(qcbor)
11+
add_subdirectory(t_cose)
12+
endif()
1113
add_subdirectory(mbedcrypto)
1214
if(BL2)
1315
add_subdirectory(mcuboot)

0 commit comments

Comments
 (0)