From 22781aff74d2874117b1743a9b0de02911a88ea0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 15 Apr 2026 15:47:45 -1000 Subject: [PATCH] libretiny: reference _PATCHERS_BY_VARIANT instead of individual regex names in error --- esphome/components/libretiny/patch_linker.py.script | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/esphome/components/libretiny/patch_linker.py.script b/esphome/components/libretiny/patch_linker.py.script index 96bad69971f..0118a277054 100644 --- a/esphome/components/libretiny/patch_linker.py.script +++ b/esphome/components/libretiny/patch_linker.py.script @@ -120,10 +120,11 @@ def _patch_build_dir(patchers, build_dir): raise RuntimeError( "ESPHome: no linker script in {} was patched for IRAM_ATTR; refusing " "to link because IRAM_ATTR functions would end up in flash instead of " - "SRAM and would crash on an ISR while flash is busy. LibreTiny probably " - "reformatted the target .ld template; update the per-family regex in " - "esphome/components/libretiny/patch_linker.py.script " - "(_LN_COPY, _RTL8710B_IMAGE2).".format(build_dir) + "SRAM and would crash on an ISR while flash is busy. LibreTiny " + "probably reformatted the target .ld template; update the per-family " + "regex in patch_linker.py.script (_PATCHERS_BY_VARIANT).".format( + build_dir + ) )