Mirror of espurna firmware for wireless switches and more
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
561 B

  1. def dummy_ets_printf(target, source, env):
  2. (postmortem_src_file,) = source
  3. (postmortem_obj_file,) = target
  4. cmd = ["xtensa-lx106-elf-objcopy"]
  5. # recent Core switched to cpp+newlib & ets_printf_P
  6. cmd.extend(["--redefine-sym", "ets_printf=dummy_ets_printf"])
  7. cmd.extend(["--redefine-sym", "ets_printf_P=dummy_ets_printf"])
  8. cmd.append(postmortem_obj_file.get_abspath())
  9. env.Execute(env.VerboseAction(" ".join(cmd), "Removing ets_printf / ets_printf_P"))
  10. env.Depends(postmortem_obj_file, "$BUILD_DIR/src/dummy_ets_printf.c.o")