Skip to content

Commit 381c99e

Browse files
committed
Add esp_eth component and update build script dependencies
1 parent e5afa62 commit 381c99e

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

boards/MICROLITE/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ 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+
# === Add this block to pick up esp_eth/phy as an extra component ===
31+
# so the build system will scan it, register its include dirs, sources, etc.
32+
set(EXTRA_COMPONENT_DIRS
33+
"${MICROPY_PORT_DIR}/components/esp_eth" # pulls in the esp_eth component tree
34+
)
35+
# ===================================================================
36+
3037
# Include main IDF cmake file and define the project.
3138
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
32-
project(micropython)
39+
project(micropython)

boards/MICROLITE/mpconfigboard.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
#define MICROPY_HW_BOARD_NAME "ESP32 module (microlite)"
22
#define MICROPY_HW_MCU_NAME "ESP32"
3-
4-
// Disable LAN867x Ethernet PHY by default as the required header may not be
5-
// available with all ESP-IDF versions.
6-
#ifndef PHY_LAN867X_ENABLED
7-
#define PHY_LAN867X_ENABLED (0)
8-
#endif

scripts/build_and_check.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ fi
2929
# Source esp-idf environment
3030
source ./esp-idf/export.sh
3131

32+
pip3 install pyelftools
33+
pip3 install ar
34+
3235
# Build micropython cross compiler
3336
pushd third_party/micropython >/dev/null
3437
make -C mpy-cross V=1 clean all

0 commit comments

Comments
 (0)