8000 esp32/boards: Build using newlib nano formatting functions. · mzdaniel/micropython@10601b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10601b0

Browse files
projectgusdpgeorge
authored andcommitted
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>
1 parent 74d04c0 commit 10601b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ports/esp32/boards/sdkconfig.base

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,9 @@ CONFIG_ETH_USE_SPI_ETHERNET=y
121121
CONFIG_ETH_SPI_ETHERNET_W5500=y
122122
CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL=y
123123
CONFIG_ETH_SPI_ETHERNET_DM9051=y
124+
125+
# Using newlib "nano" formatting saves size on SoCs where "nano" formatting
126+
# functions are in ROM. Note some newer chips (c2,c6) have "full" newlib
127+
# formatting in ROM instead and should override this, check
128+
# ESP_ROM_HAS_NEWLIB_NANO_FORMAT.
129+
CONFIG_NEWLIB_NANO_FORMAT=y

0 commit comments

Comments
 (0)
0