Skip to content

Commit

Permalink
cmake: Register automatic git submodules handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-anl committed Nov 11, 2024
1 parent 50a99c3 commit 755d385
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions micropython.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# This file is to be given as "make USER_C_MODULES=..." when building Micropython port

if(ECHO_SUBMODULES)
string(CONCAT GIT_SUBMODULES "${GIT_SUBMODULES} " ${CMAKE_CURRENT_LIST_DIR}/lvgl ${CMAKE_CURRENT_LIST_DIR}/pycparser)
elseif(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/lvgl/README.md)
message(FATAL_ERROR " lvgl not initialized.\n Run 'make BOARD=${MICROPY_BOARD} submodules'")
endif()

# Include LVGL component, ignore KCONFIG

idf_build_set_property(LV_MICROPYTHON 1)
Expand Down

0 comments on commit 755d385

Please sign in to comment.