diff options
author | Angus Gratton <angus@redyak.com.au> | 2024-07-23 11:41:25 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-08-14 15:57:52 +1000 |
commit | 10601b04eabb5619e51bdd5f04c7d77ea8e201eb (patch) | |
tree | f9a9e212f6f035af8822c6528b941e98163c91b9 | |
parent | 74d04c026220b301a1966dbb0d6064d06132999e (diff) |
esp32/boards: Build using newlib nano formatting functions.
Saves code size, MicroPython doesn't appear to rely on any of the missing
formatters (64-bit integers, c99-style named arguments).
Signed-off-by: Angus Gratton <angus@redyak.com.au>
-rw-r--r-- | ports/esp32/boards/sdkconfig.base | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/esp32/boards/sdkconfig.base b/ports/esp32/boards/sdkconfig.base index ca36206d1..84a423fa0 100644 --- a/ports/esp32/boards/sdkconfig.base +++ b/ports/esp32/boards/sdkconfig.base @@ -121,3 +121,9 @@ CONFIG_ETH_USE_SPI_ETHERNET=y CONFIG_ETH_SPI_ETHERNET_W5500=y CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL=y CONFIG_ETH_SPI_ETHERNET_DM9051=y + +# Using newlib "nano" formatting saves size on SoCs where "nano" formatting +# functions are in ROM. Note some newer chips (c2,c6) have "full" newlib +# formatting in ROM instead and should override this, check +# ESP_ROM_HAS_NEWLIB_NANO_FORMAT. +CONFIG_NEWLIB_NANO_FORMAT=y |