mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 09:06:02 +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")
|
||||
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")
|
||||
|
||||
@ -90,4 +94,4 @@ projenv.Append(
|
||||
"-DAPP_VERSION=" + verObj["long"],
|
||||
"-DAPP_VERSION_SHORT=" + verObj["short"],
|
||||
]
|
||||
)
|
||||
)
|
Loading…
Reference in New Issue
Block a user