Skip to content

Commit d0758d8

Browse files
committed
esp32/boards/ESP32_GENERIC: Disable network.LAN and VM-opt on D2WD.
To reduce firmware size, because IDF v5.0.4 has increased in size. Signed-off-by: Damien George <[email protected]>
1 parent b4b77c1 commit d0758d8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ports/esp32/boards/ESP32_GENERIC/mpconfigboard.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ if(MICROPY_BOARD_VARIANT STREQUAL "D2WD")
1111

1212
list(APPEND MICROPY_DEF_BOARD
1313
MICROPY_HW_MCU_NAME="ESP32-D2WD"
14+
# Disable some options to reduce firmware size.
15+
MICROPY_OPT_COMPUTED_GOTO=0
16+
MICROPY_PY_NETWORK_LAN=0
1417
)
1518
endif()
1619

ports/esp32/mpconfigport.h

+2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
#define MICROPY_COMP_CONST_FOLDING_COMPILER_WORKAROUND (1)
4141

4242
// optimisations
43+
#ifndef MICROPY_OPT_COMPUTED_GOTO
4344
#define MICROPY_OPT_COMPUTED_GOTO (1)
45+
#endif
4446

4547
// Python internal features
4648
#define MICROPY_READER_VFS (1)

0 commit comments

Comments
 (0)