Files
micropython/ports/esp32/boards/ESP32_GENERIC_C3/mpconfigboard.cmake
Angus Gratton 9a9cc79422 esp32/boards: Build ESP32-C2 and C3 with -Os instead of -O2.
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>
2025-08-29 13:35:53 +10:00

9 lines
172 B
CMake

set(IDF_TARGET esp32c3)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.riscv
boards/sdkconfig.ble
boards/ESP32_GENERIC_C3/sdkconfig.c3usb
)