[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/12] target/xtensa: list cores in a text file
From: |
Paolo Bonzini |
Subject: |
[PULL 11/12] target/xtensa: list cores in a text file |
Date: |
Tue, 5 Oct 2021 18:44:07 +0200 |
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>
---
target/xtensa/cores.list | 9 +++++++++
target/xtensa/import_core.sh | 3 +++
target/xtensa/meson.build | 4 ++--
3 files changed, 14 insertions(+), 2 deletions(-)
create mode 100644 target/xtensa/cores.list
diff --git a/target/xtensa/cores.list b/target/xtensa/cores.list
new file mode 100644
index 0000000000..5772a00ab2
--- /dev/null
+++ b/target/xtensa/cores.list
@@ -0,0 +1,9 @@
+core-dc232b.c
+core-dc233c.c
+core-de212.c
+core-de233_fpu.c
+core-dsp3400.c
+core-fsf.c
+core-sample_controller.c
+core-test_kc705_be.c
+core-test_mmuhifi_c3.c
diff --git a/target/xtensa/import_core.sh b/target/xtensa/import_core.sh
index 396b264be9..df66d09393 100755
--- a/target/xtensa/import_core.sh
+++ b/target/xtensa/import_core.sh
@@ -66,3 +66,6 @@ static XtensaConfig $NAME __attribute__((unused)) = {
REGISTER_CORE($NAME)
EOF
+
+grep -qxf core-${NAME}.c "$BASE"/cores.list || \
+ echo core-${NAME}.c >> "$BASE"/cores.list
diff --git a/target/xtensa/meson.build b/target/xtensa/meson.build
index 7c4efa6c62..20bbf9b335 100644
--- a/target/xtensa/meson.build
+++ b/target/xtensa/meson.build
@@ -1,7 +1,7 @@
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_cores = fs.read('cores.list')
+xtensa_ss.add(files(xtensa_cores.strip().split('\n')))
xtensa_ss.add(files(
'cpu.c',
--
2.31.1
- [PULL 00/12] Misc changes for 2021-10-05, Paolo Bonzini, 2021/10/05
- [PULL 02/12] sev/i386: Introduce sev_add_kernel_loader_hashes for measured linux boot, Paolo Bonzini, 2021/10/05
- [PULL 04/12] hw/misc: applesmc: use host osk as default on macs, Paolo Bonzini, 2021/10/05
- [PULL 07/12] migration: add missing qemu_mutex_lock_iothread in migration_completion, Paolo Bonzini, 2021/10/05
- [PULL 01/12] i386: docs: Briefly describe KVM PV features, Paolo Bonzini, 2021/10/05
- [PULL 03/12] x86/sev: generate SEV kernel loader hashes in x86_load_linux, Paolo Bonzini, 2021/10/05
- [PULL 05/12] configure, meson: move CPU_CFLAGS out of QEMU_CFLAGS, Paolo Bonzini, 2021/10/05
- [PULL 08/12] meson: bump submodule to 0.59.2, Paolo Bonzini, 2021/10/05
- [PULL 11/12] target/xtensa: list cores in a text file,
Paolo Bonzini <=
- [PULL 10/12] hexagon: use env keyword argument to pass PYTHONPATH, Paolo Bonzini, 2021/10/05
- [PULL 09/12] meson: switch minimum meson version to 0.58.2, minimum recommended to 0.59.2, Paolo Bonzini, 2021/10/05
- [PULL 12/12] meson: show library versions in the summary, Paolo Bonzini, 2021/10/05
- Re: [PULL 12/12] meson: show library versions in the summary, Philippe Mathieu-Daudé, 2021/10/06
- Re: [PULL 12/12] meson: show library versions in the summary, Richard Henderson, 2021/10/06
- Re: [PULL 12/12] meson: show library versions in the summary, Philippe Mathieu-Daudé, 2021/10/06
- Re: [PULL 12/12] meson: show library versions in the summary, Paolo Bonzini, 2021/10/06
- Re: [PULL 12/12] meson: show library versions in the summary, Philippe Mathieu-Daudé, 2021/10/06
- Re: [PULL 12/12] meson: show library versions in the summary, Paolo Bonzini, 2021/10/07
[PULL 06/12] migration: block-dirty-bitmap: add missing qemu_mutex_lock_iothread, Paolo Bonzini, 2021/10/05