Tasmota/pio-tools/strip-flags.py
Jason2866 3537d18483
Update esp8266 platform to 2024.06.10 (#21668)
* Update esp8266 platform (2024.06.00)

* Update strip-floats.py

* Rename strip-floats.py to strip-flags.py

* rename to `strip_flags.py`

* esp8266 v2.7.7
2024-06-20 23:23:53 +02:00

16 lines
436 B
Python

Import('env')
link_flags = " ".join(env['LINKFLAGS'])
build_flags = " ".join(env['BUILD_FLAGS'])
if "FIRMWARE_SAFEBOOT" in build_flags:
# Crash Recorder is not included in safeboot firmware -> remove Linker wrap
link_flags = link_flags.replace("-Wl,--wrap=panicHandler", "")
link_flags = link_flags.replace("-Wl,--wrap=xt_unhandled_exception", "")
new_link_flags = link_flags.split()
env.Replace(
LINKFLAGS=new_link_flags
)