[esp32] Deduplicate PlatformIO library conversion by resolving the batch together (#16756)

This commit is contained in:
Jonathan Swoboda
2026-06-04 07:39:17 -04:00
committed by GitHub
parent ffaa31febc
commit 891ec33c94
4 changed files with 702 additions and 525 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ section instead of static fields. The script runs under SCons during
PIO's build and mutates the active ``Environment`` (``env.Append``,
``env.Replace``, …) — chiefly to set ``LIBPATH``/``LIBS`` per chip MCU.
ESPHome's PIO→IDF converter (``_generate_idf_component``) doesn't run
SCons, so these scripts were previously ignored and any library
ESPHome's PIO→IDF converter doesn't run SCons, so these scripts were
previously ignored and any library
relying on them failed to link under ``toolchain: esp-idf``. This
module provides a small shim that ``exec``s an extra-script with a
fake ``env`` object, captures the common ``env.Append(...)`` calls,