2018-02-03 15:36:25 +00:00
|
|
|
Import('env')
|
|
|
|
|
2024-06-22 12:37:20 +01:00
|
|
|
link_flags = env['LINKFLAGS']
|
2024-06-20 15:22:49 +01:00
|
|
|
build_flags = " ".join(env['BUILD_FLAGS'])
|
2024-05-03 13:47:14 +01:00
|
|
|
|
|
|
|
if "FIRMWARE_SAFEBOOT" in build_flags:
|
|
|
|
# Crash Recorder is not included in safeboot firmware -> remove Linker wrap
|
2024-06-22 12:37:20 +01:00
|
|
|
try:
|
|
|
|
link_flags.pop(link_flags.index("-Wl,--wrap=panicHandler"))
|
|
|
|
except:
|
2024-10-18 18:18:10 +01:00
|
|
|
pass
|
2024-06-22 12:37:20 +01:00
|
|
|
try:
|
|
|
|
link_flags.pop(link_flags.index("-Wl,--wrap=xt_unhandled_exception"))
|
|
|
|
except:
|
2024-10-18 18:18:10 +01:00
|
|
|
pass
|