aboutsummaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorAndrew Leech <andrew@alelec.net>2022-04-29 05:49:20 +1000
committerDamien George <damien@micropython.org>2022-06-03 14:29:11 +1000
commit7d9cc69645c48e67fd404c494cebad1b90c5757d (patch)
treefa021fb60a6adf893d03bc230b6132c813eb7306 /py
parent21b3a396de4dd193e97c5576060cfd2b23bc48e1 (diff)
rp2/Makefile: Use cmake for "make submodules" task when needed.
Because the submodule list can be updated by cmake files. Signed-off-by: Andrew Leech <andrew@alelec.net>
Diffstat (limited to 'py')
-rw-r--r--py/mkrules.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/mkrules.cmake b/py/mkrules.cmake
index 261e15369..d0dc01962 100644
--- a/py/mkrules.cmake
+++ b/py/mkrules.cmake
@@ -178,3 +178,10 @@ if(MICROPY_FROZEN_MANIFEST)
VERBATIM
)
endif()
+
+# Update submodules
+if(ECHO_SUBMODULES)
+ # If cmake is run with GIT_SUBMODULES defined on command line, process the port / board
+ # settings then print the final GIT_SUBMODULES variable as a fatal error and exit.
+ message(FATAL_ERROR "GIT_SUBMODULES=${GIT_SUBMODULES}")
+endif()