mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
Same optimisation that was applied to C6 in the parent commit, now applied
to all RISC-V boards.
+------------+------------+------------+------------+
| Size | Before | After | Delta |
+------------+------------+------------+------------+
| C2 Binary | 1680384 | 1494224 | -186160 |
| C2 D/IRAM | 83710 | 79080 | -4630 |
| C3 Binary | 1833328 | 1636624 | -196704 |
| C3 D/IRAM | 139608 | 131896 | -7712 |
+------------+------------+------------+------------+
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
16 lines
312 B
CMake
16 lines
312 B
CMake
set(IDF_TARGET esp32c2)
|
|
|
|
set(SDKCONFIG_DEFAULTS
|
|
boards/sdkconfig.base
|
|
boards/sdkconfig.riscv
|
|
boards/sdkconfig.ble
|
|
boards/sdkconfig.c2
|
|
# C2 has unusably low free RAM without these optimisations
|
|
boards/sdkconfig.free_ram
|
|
)
|
|
|
|
set(MICROPY_SOURCE_BOARD
|
|
${MICROPY_BOARD_DIR}/board_init.c
|
|
)
|
|
|