esp32: Makefile, remove submodules sideeffect. #16549
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR removes an unwanted sideffect of
make -C micropython/ports/esp32 submodules
versus
make -C micropython/ports/esp32 submodules BOARD=ESP32_GENERIC_S3
This sideffect broke the build of ESP32_GENERIC_S3 when running on docker.io/espressif/idf:v5.2.2.
Testing
This compile ok:
docker run -t docker.io/espressif/idf:v5.2.2 bash -c "git clone https://github.com/micropython/micropython.git && make -C micropython/mpy-cross && make -C micropython/ports/esp32 submodules && make -C micropython/ports/esp32 BOARD=ESP32_GENERIC_S3"
This compile fails (added: BOARD=ESP32_GENERIC_S3):
docker run -t docker.io/espressif/idf:v5.2.2 bash -c "git clone https://github.com/micropython/micropython.git && make -C micropython/mpy-cross && make -C micropython/ports/esp32 submodules BOARD=ESP32_GENERIC_S3 && make -C micropython/ports/esp32 BOARD=ESP32_GENERIC_S3"
Error message
Subfailure in cmake
In
ports/esp32/Makefile
Here,
idf.py
crashes silently withThis error occurs using
docker.io/espressif/idf:v5.2.2
and the current versionhmaerki/build-micropython-esp32:v5.2.2
.The second commit in this MR fixes this.
Sidenote: It is quite dangerous, that
idf.py
may crash silently - and leaveGIT_SUBMODULES
empty. This should be fixed.Fix
With this PR applied, both docker commands succeed.