diff --git a/bin/arduino-esp32-libs-release_v4.4.tar.gz b/bin/arduino-esp32-libs-release_v4.4.tar.gz new file mode 100644 index 0000000000..aec83249d0 Binary files /dev/null and b/bin/arduino-esp32-libs-release_v4.4.tar.gz differ diff --git a/bin/platformio-custom.py b/bin/platformio-custom.py index 3202a1e7a9..1cca72ca57 100644 --- a/bin/platformio-custom.py +++ b/bin/platformio-custom.py @@ -7,6 +7,7 @@ Import("env") platform = env.PioPlatform() +board = env.GetProjectOption("board") def esp32_create_combined_bin(source, target, env): @@ -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") @@ -90,4 +94,4 @@ def esp32_create_combined_bin(source, target, env): "-DAPP_VERSION=" + verObj["long"], "-DAPP_VERSION_SHORT=" + verObj["short"], ] -) +) \ No newline at end of file