Tasmota/pio-tools/strip-flags.py
Jason2866 f320ca2982
Phase out of Tasmota espressif32 frameworks solo1 and ITEAD (#22315)
* Step 1 of phase out of special frameworks solo1 and ITEAD
2024-10-18 19:18:10 +02:00

16 lines
396 B
Python

Import('env')
link_flags = 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
try:
link_flags.pop(link_flags.index("-Wl,--wrap=panicHandler"))
except:
pass
try:
link_flags.pop(link_flags.index("-Wl,--wrap=xt_unhandled_exception"))
except:
pass