Add custom esp32 libs to save some iram space

This commit is contained in:
Jonathan Bennett 2024-07-23 01:53:55 -05:00
parent 6e648b9b77
commit 1b5edeb615
2 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@ -7,6 +7,7 @@ from readprops import readProps
Import("env")
platform = env.PioPlatform()
board = env.GetProjectOption("board")
def esp32_create_combined_bin(source, target, env):
@ -77,6 +78,9 @@ if platform.name == "espressif32":
else:
# For newer ESP32 targets, using newlib nano works better.
env.Append(LINKFLAGS=["--specs=nano.specs", "-u", "_printf_float"])
if board == "ttgo-t-beam":
print("patching esp32 libs")
env.Execute("tar -xvf bin/arduino-esp32-libs-release_*tar.gz -C ~/.platformio/packages/framework-arduinoespressif32/")
Import("projenv")