mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 17:32:18 +00:00
Add custom esp32 libs to save some iram space
This commit is contained in:
parent
6e648b9b77
commit
1b5edeb615
BIN
bin/arduino-esp32-libs-release_v4.4.tar.gz
Normal file
BIN
bin/arduino-esp32-libs-release_v4.4.tar.gz
Normal file
Binary file not shown.
@ -7,6 +7,7 @@ from readprops import readProps
|
|||||||
|
|
||||||
Import("env")
|
Import("env")
|
||||||
platform = env.PioPlatform()
|
platform = env.PioPlatform()
|
||||||
|
board = env.GetProjectOption("board")
|
||||||
|
|
||||||
|
|
||||||
def esp32_create_combined_bin(source, target, env):
|
def esp32_create_combined_bin(source, target, env):
|
||||||
@ -77,6 +78,9 @@ if platform.name == "espressif32":
|
|||||||
else:
|
else:
|
||||||
# For newer ESP32 targets, using newlib nano works better.
|
# For newer ESP32 targets, using newlib nano works better.
|
||||||
env.Append(LINKFLAGS=["--specs=nano.specs", "-u", "_printf_float"])
|
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")
|
Import("projenv")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user