* 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
16 lines
436 B
Python
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
|
|
)
|