Skip to content

Commit f5e64e8

Browse files
committed
Appending IDF_COMPONENTS
1 parent f088870 commit f5e64e8

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

boards/MICROLITE/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ endforeach()
2727
configure_file(${CMAKE_BINARY_DIR}/sdkconfig.combined.in ${CMAKE_BINARY_DIR}/sdkconfig.combined COPYONLY)
2828
set(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.
3431
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
3532
project(micropython)
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Include MicroPython ESP32 component.
22

33
get_filename_component(CURRENT_DIR "." ABSOLUTE)
4-
54
message(STATUS "microlite/main/cmake: CURRENT_DIR=${CURRENT_DIR}")
65

76
get_filename_component(MICROPY_DIR "../../../third_party/micropython" ABSOLUTE)
@@ -10,4 +9,14 @@ get_filename_component(MICROPY_DIR "../../../third_party/micropython" ABSOLUTE)
109
message (STATUS "microlite/main/cmake: MICROPY_DIR=${MICROPY_DIR}")
1110

1211
set(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}")

0 commit comments

Comments
 (0)