Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom esp32 libs to save some iram space #4324

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added bin/arduino-esp32-libs-release_v4.4.tar.gz
Binary file not shown.
6 changes: 5 additions & 1 deletion bin/platformio-custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Import("env")
platform = env.PioPlatform()
board = env.GetProjectOption("board")


def esp32_create_combined_bin(source, target, env):
Expand Down Expand Up @@ -77,6 +78,9 @@ def esp32_create_combined_bin(source, target, env):
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")

Expand All @@ -90,4 +94,4 @@ def esp32_create_combined_bin(source, target, env):
"-DAPP_VERSION=" + verObj["long"],
"-DAPP_VERSION_SHORT=" + verObj["short"],
]
)
)
Loading