Register automatic git submodules handling
AN
3mo ago+15+15+01234567890123456789-0-0-0123456789
Summary
Adds automatic submodule initialization for lvgl and pycparser to both Make and CMake build systems. This removes the manual step of running git submodule update --init before building. Both implementations hook into MicroPython's existing submodules target - Make appends to the target directly, while CMake registers via the ECHO_SUBMODULES mechanism. Also adds validation in CMake to catch missing submodules at configuration time with a helpful error message.
Summary by cubic
Automatically initializes lvgl and pycparser git submodules in both Make and CMake builds to remove the manual step. CMake also fails fast with a clear error if lvgl isn’t initialized.
- New Features
- Make: extends MicroPython’s
submodulestarget to sync/initlvglandpycparser. - CMake: registers both via
ECHO_SUBMODULES; iflvgl/README.mdis missing, configuration fails and suggestsmake BOARD=${MICROPY_BOARD} submodules.
- Make: extends MicroPython’s