mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-03 06:54:16 +01:00
* utils/version: use git description token as version, add memoization * pio: move extra scripts to a separate directory * pio: add -DAPP_REVISION=... as local build flag
14 lines
561 B
Python
14 lines
561 B
Python
def dummy_ets_printf(target, source, env):
|
|
(postmortem_src_file,) = source
|
|
(postmortem_obj_file,) = target
|
|
|
|
cmd = ["xtensa-lx106-elf-objcopy"]
|
|
|
|
# recent Core switched to cpp+newlib & ets_printf_P
|
|
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"))
|
|
env.Depends(postmortem_obj_file, "$BUILD_DIR/src/dummy_ets_printf.c.o")
|