diff mbox series

[RFC,6/6] disas: Select capstone targets by default

Message ID 20250103231738.65413-7-philmd@linaro.org
State New
Headers show
Series disas: Allow linking multiple disassemblers in a heterogeneous binary | expand

Commit Message

Philippe Mathieu-Daudé Jan. 3, 2025, 11:17 p.m. UTC
When capstone is available, we get ARM/X86/PPC/S390X
disassemblers in common_ss[] for free.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 disas/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Richard Henderson Jan. 5, 2025, 1:02 a.m. UTC | #1
On 1/3/25 15:17, Philippe Mathieu-Daudé wrote:
> When capstone is available, we get ARM/X86/PPC/S390X
> disassemblers in common_ss[] for free.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   disas/Kconfig | 4 ++++
>   1 file changed, 4 insertions(+)

Acked-by: Richard Henderson <richard.henderson@linaro.org>

Hopefully starting with capstone 6 we'll be able to add more.


r~
diff mbox series

Patch

diff --git a/disas/Kconfig b/disas/Kconfig
index 1d2c397c953..8af8ecd5c81 100644
--- a/disas/Kconfig
+++ b/disas/Kconfig
@@ -3,6 +3,7 @@  config ALPHA_DIS
 
 config ARM_DIS
     bool
+    default y if CAPSTONE
 
 config AVR_DIS
     bool
@@ -15,6 +16,7 @@  config HPPA_DIS
 
 config I386_DIS
     bool
+    default y if CAPSTONE
 
 config LOONGARCH_DIS
     bool
@@ -33,6 +35,7 @@  config OPENRISC_DIS
 
 config PPC_DIS
     bool
+    default y if CAPSTONE
 
 config RISCV_DIS
     bool
@@ -42,6 +45,7 @@  config RX_DIS
 
 config S390_DIS
     bool
+    default y if CAPSTONE
 
 config SH4_DIS
     bool