mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 19:48:39 +00:00
33118e0e57f6c1c5468e050c11c2a9921fed3b36
Two issues from the cb3s smoke test: - The previous CPPDEFINES-only variant detection missed the USE_LIBRETINY_VARIANT_* define on BK72xx in the pre-script environment, so no patcher registered and the .sram.text section silently landed in flash. Check BUILD_FLAGS as a fallback so the define is picked up regardless of when PlatformIO finishes populating CPPDEFINES. - When the variant could not be detected, or no .ld file was modified, the script exited quietly and the firmware linked with IRAM_ATTR functions in flash — the exact bug this PR is trying to fix. Raise a RuntimeError in all three failure cases (variant missing, variant unknown, no .ld patched) so the build fails loudly instead of producing broken firmware.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
609 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
