qemu-e2k/target/xtensa/meson.build
Max Filippov 84317d57e8 target/xtensa: fix meson.build rule for xtensa cores
import_core.sh tries to change Makefile.objs when importing new xtensa
core, but that file no longer exists. Rewrite meson.build rule to pick
up all source files that match core-*.c pattern and drop commands that
change Makefile.objs.

Cc: qemu-stable@nongnu.org # v5.2.0
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
2021-04-03 08:52:18 -07:00

28 lines
589 B
Meson

xtensa_ss = ss.source_set()
xtensa_cores = run_command('sh', '-c', 'cd $MESON_SOURCE_ROOT/$MESON_SUBDIR ; ls -1 core-*.c')
xtensa_ss.add(files(xtensa_cores.stdout().strip().split('\n')))
xtensa_ss.add(files(
'cpu.c',
'exc_helper.c',
'fpu_helper.c',
'gdbstub.c',
'helper.c',
'op_helper.c',
'translate.c',
'win_helper.c',
'xtensa-isa.c',
))
xtensa_softmmu_ss = ss.source_set()
xtensa_softmmu_ss.add(files(
'dbg_helper.c',
'mmu_helper.c',
'monitor.c',
'xtensa-semi.c',
))
target_arch += {'xtensa': xtensa_ss}
target_softmmu_arch += {'xtensa': xtensa_softmmu_ss}