Skip to content

Commit 2bf9996

Browse files
committed
cmake: Register automatic git submodules handling.
Signed-off-by: Andrew Leech <[email protected]>
1 parent f33add0 commit 2bf9996

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

micropython.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11

22
# This file is to be given as "make USER_C_MODULES=..." when building Micropython port
33

4+
if(ECHO_SUBMODULES)
5+
string(CONCAT GIT_SUBMODULES "${GIT_SUBMODULES} " ${CMAKE_CURRENT_LIST_DIR}/lvgl ${CMAKE_CURRENT_LIST_DIR}/pycparser)
6+
elseif(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/lvgl/README.md)
7+
message(FATAL_ERROR " lvgl not initialized.\n Run 'make BOARD=${MICROPY_BOARD} submodules'")
8+
endif()
9+
410
# Include LVGL component, ignore KCONFIG
511
separate_arguments(LV_CFLAGS_ENV UNIX_COMMAND $ENV{LV_CFLAGS})
612

0 commit comments

Comments
 (0)