Skip to content

Commit 8993857

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 bb15a51 commit 8993857

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ if ("${MCUBOOT_PATH}" STREQUAL "DOWNLOAD")
1919
GIT_TAG ${MCUBOOT_VERSION}
2020
GIT_SHALLOW FALSE
2121
GIT_PROGRESS TRUE
22-
GIT_SUBMODULES ""
22+
GIT_SUBMODULES "docs" # Workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/20579
23+
# in cmake 3.17 and below.
2324
)
2425
# ToDo: set GIT_SHALLOW to 'TRUE' when MCUBOOT_VERSION will be set to a tag
2526
# (instead of a commit hash) with the new release.

0 commit comments

Comments
 (0)