From 8cc389fce3afefcf703772b96474f940d9fe6e90 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Fri, 29 Mar 2019 15:19:29 +0300 Subject: [PATCH] no need to conditionally redefine symbols --- code/extra_scripts.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/extra_scripts.py b/code/extra_scripts.py index 4709b4ab..1d8c4f6c 100644 --- a/code/extra_scripts.py +++ b/code/extra_scripts.py @@ -85,10 +85,8 @@ def dummy_ets_printf(target, source, env): cmd = ["xtensa-lx106-elf-objcopy"] # recent Core switched to cpp+newlib & ets_printf_P - if postmortem_src_file.get_abspath().endswith(".cpp"): - cmd.extend(["--redefine-sym", "ets_printf_P=dummy_ets_printf"]) - else: - cmd.extend(["--redefine-sym", "ets_printf=dummy_ets_printf"]) + cmd.extend(["--redefine-sym", "ets_printf=dummy_ets_printf"]) + cmd.extend(["--redefine-sym", "ets_printf_P=dummy_ets_printf"]) cmd.append(postmortem_obj_file.get_abspath()) env.Execute(env.VerboseAction(" ".join(cmd), "Removing ets_printf / ets_printf_P"))