File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ endforeach()
2727configure_file (${CMAKE_BINARY_DIR} /sdkconfig.combined.in ${CMAKE_BINARY_DIR} /sdkconfig.combined COPYONLY )
2828set (SDKCONFIG_DEFAULTS ${CMAKE_BINARY_DIR} /sdkconfig.combined)
2929
30- # ——————————————————————————————————————————————————————————————
31- # Pull in the ethernet driver too
32- list (APPEND IDF_COMPONENTS "esp_eth" )
33-
30+ # Include main IDF cmake file and define the project.
3431include ($ENV{IDF_PATH} /tools/cmake/project.cmake)
3532project (micropython)
Original file line number Diff line number Diff line change 11# Include MicroPython ESP32 component.
22
33get_filename_component (CURRENT_DIR "." ABSOLUTE )
4-
54message (STATUS "microlite/main/cmake: CURRENT_DIR=${CURRENT_DIR} " )
65
76get_filename_component (MICROPY_DIR "../../../third_party/micropython" ABSOLUTE )
@@ -10,4 +9,14 @@ get_filename_component(MICROPY_DIR "../../../third_party/micropython" ABSOLUTE)
109message (STATUS "microlite/main/cmake: MICROPY_DIR=${MICROPY_DIR} " )
1110
1211set (PROJECT_DIR ${MICROPY_DIR} /ports/esp32)
13- include (${PROJECT_DIR} /main/CMakeLists.txt)
12+
13+ # ——————————————————————————————————————————————————————————————
14+ # Ensure ESP-Ethernet is built alongside the other IDF components
15+ # ——————————————————————————————————————————————————————————————
16+ list (APPEND IDF_COMPONENTS "esp_eth" )
17+ message (STATUS "microlite/main/cmake: IDF_COMPONENTS=${IDF_COMPONENTS} " )
18+
19+ # Now include the MicroPython ESP32 build
20+ include (${PROJECT_DIR} /main/CMakeLists.txt)
21+
22+ message (STATUS "microlite/main/cmake: After IDF_COMPONENTS=${IDF_COMPONENTS} " )
You can’t perform that action at this time.
0 commit comments