Skip to content

Commit 211e9e7

Browse files
mcuboot: Add workaround to not fetch submodules
CMP0097 doesn't work on 3.16 and 3.17. https://gitlab.kitware.com/cmake/cmake/-/issues/20579 Add a workaround (request non-existant submodule). This prevents fetching almost 200 MB of data, improving pristine build times. Signed-off-by: Øyvind Rønningstad <[email protected]>
1 parent 8e2f6a8 commit 211e9e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

trusted-firmware-m/lib/ext/mcuboot/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ if ("${MCUBOOT_PATH}" STREQUAL "DOWNLOAD")
1919
GIT_TAG ${MCUBOOT_VERSION}
2020
GIT_SHALLOW FALSE
2121
GIT_PROGRESS TRUE
22-
GIT_SUBMODULES ""
22+
GIT_SUBMODULES "boot/cypress/libs/cy-mbedtls-acceleration/"
23+
# Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/20579
24+
# in cmake 3.17 and below. This fetches the smallest submodule instead
25+
# of fetching all submodules, to save bandwidth since they are not
26+
# needed.
2327
)
2428
# ToDo: set GIT_SHALLOW to 'TRUE' when MCUBOOT_VERSION will be set to a tag
2529
# (instead of a commit hash) with the new release.

0 commit comments

Comments
 (0)