xemu/target/xtensa/meson.build
Paolo Bonzini 2796032a51 target/xtensa: list cores in a text file
Avoid that leftover files affect the build; instead, use the same
mechanism that was in place before the Meson transition of updating
a file from import_core.sh.  Starting with Meson 0.57, the file
can be easily read from the filesystem module, so do that instead
of using run_command.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-10-05 13:10:29 +02:00

28 lines
522 B
Meson

xtensa_ss = ss.source_set()
xtensa_cores = fs.read('cores.list')
xtensa_ss.add(files(xtensa_cores.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}