[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 1/6] target: Only link capstone to targets requiring it
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 1/6] target: Only link capstone to targets requiring it |
Date: |
Sat, 4 Jan 2025 00:17:33 +0100 |
No need to link capstone to targets which don't use it.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
disas/meson.build | 1 -
target/arm/meson.build | 1 +
target/i386/meson.build | 1 +
target/ppc/meson.build | 1 +
target/s390x/meson.build | 1 +
5 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/disas/meson.build b/disas/meson.build
index bbfa1197835..4e80adf36ae 100644
--- a/disas/meson.build
+++ b/disas/meson.build
@@ -20,4 +20,3 @@ common_ss.add(when: 'CONFIG_TCG', if_true: files(
))
common_ss.add(files('disas-common.c'))
system_ss.add(files('disas-mon.c'))
-specific_ss.add(capstone)
diff --git a/target/arm/meson.build b/target/arm/meson.build
index 2e10464dbb6..3d64334657d 100644
--- a/target/arm/meson.build
+++ b/target/arm/meson.build
@@ -1,4 +1,5 @@
arm_ss = ss.source_set()
+arm_ss.add(capstone)
arm_ss.add(files(
'cpu.c',
'debug_helper.c',
diff --git a/target/i386/meson.build b/target/i386/meson.build
index 2e9c472f49d..7d1363ec21f 100644
--- a/target/i386/meson.build
+++ b/target/i386/meson.build
@@ -1,4 +1,5 @@
i386_ss = ss.source_set()
+i386_ss.add(capstone)
i386_ss.add(files(
'cpu.c',
'gdbstub.c',
diff --git a/target/ppc/meson.build b/target/ppc/meson.build
index db3b7a0c33b..b5f509612ec 100644
--- a/target/ppc/meson.build
+++ b/target/ppc/meson.build
@@ -1,4 +1,5 @@
ppc_ss = ss.source_set()
+ppc_ss.add(capstone)
ppc_ss.add(files(
'cpu-models.c',
'cpu.c',
diff --git a/target/s390x/meson.build b/target/s390x/meson.build
index 3b34ae034cb..6e00793944e 100644
--- a/target/s390x/meson.build
+++ b/target/s390x/meson.build
@@ -1,4 +1,5 @@
s390x_ss = ss.source_set()
+s390x_ss.add(capstone)
s390x_ss.add(files(
'cpu.c',
'cpu_features.c',
--
2.47.1
- [RFC PATCH 0/6] disas: Allow linking multiple disassemblers in a heterogeneous binary, Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 1/6] target: Only link capstone to targets requiring it,
Philippe Mathieu-Daudé <=
- [RFC PATCH 2/6] target/hexagon: Add Kconfig file, Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 3/6] target/xtensa: Move xtensa-isa.c to common_ss[], Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 4/6] disas: Have each system target select its disassembler, Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 5/6] Kconfig: Expose host CONFIG_CAPSTONE definition, Philippe Mathieu-Daudé, 2025/01/03
- [RFC PATCH 6/6] disas: Select capstone targets by default, Philippe Mathieu-Daudé, 2025/01/03