kconfig: use "select" to enable semihosting
PATCH 1/1 kconfig: use "select" to enable semihosting
Just like all other dependencies, these can be expressed in Kconfig files rather than in the default configurations.
Signed-off-by Paolo Bonzini <[email protected]>
--- configs/devices/m68k-softmmu/default.mak | 2 -- configs/devices/mips-softmmu/common.mak | 3 --- configs/devices/nios2-softmmu/default.mak | 2 -- configs/devices/riscv32-softmmu/default.mak | 2 -- configs/devices/riscv64-softmmu/default.mak | 2 -- configs/devices/xtensa-softmmu/default.mak | 2 -- target/m68k/Kconfig | 1 + target/mips/Kconfig | 1 + target/nios2/Kconfig | 1 + target/riscv/Kconfig | 2 ++ target/xtensa/Kconfig | 1 + 11 files changed, 6 insertions(+), 13 deletions(-)
configs/devices/m68k-softmmu/default.mak +0 -2
@@ -1,7 +1,5 @@ # Default configuration for m68k-softmmu -CONFIG_SEMIHOSTING=y - # Boards: # CONFIG_AN5206=y
configs/devices/mips-softmmu/common.mak +0 -3
@@ -1,8 +1,5 @@ # Common mips*-softmmu CONFIG defines -# CONFIG_SEMIHOSTING is always required on this architecture -CONFIG_SEMIHOSTING=y - CONFIG_ISA_BUS=y CONFIG_PCI=y CONFIG_PCI_DEVICES=y
configs/devices/nios2-softmmu/default.mak +0 -2
@@ -1,7 +1,5 @@ # Default configuration for nios2-softmmu -CONFIG_SEMIHOSTING=y - # Boards: # CONFIG_NIOS2_10M50=y
configs/devices/riscv32-softmmu/default.mak +0 -2
@@ -3,8 +3,6 @@ # Uncomment the following lines to disable these optional devices: # #CONFIG_PCI_DEVICES=n -CONFIG_SEMIHOSTING=y -CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y # Boards: #
configs/devices/riscv64-softmmu/default.mak +0 -2
@@ -3,8 +3,6 @@ # Uncomment the following lines to disable these optional devices: # #CONFIG_PCI_DEVICES=n -CONFIG_SEMIHOSTING=y -CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y # Boards: #
configs/devices/xtensa-softmmu/default.mak +0 -2
@@ -1,7 +1,5 @@ # Default configuration for Xtensa -CONFIG_SEMIHOSTING=y - # Boards: # CONFIG_XTENSA_SIM=y
target/m68k/Kconfig +1 -0
@@ -1,2 +1,3 @@ config M68K bool + select SEMIHOSTING
target/mips/Kconfig +1 -0
@@ -1,5 +1,6 @@ config MIPS bool + select SEMIHOSTING config MIPS64 bool
target/nios2/Kconfig +1 -0
@@ -1,2 +1,3 @@ config NIOS2 bool + select SEMIHOSTING
target/riscv/Kconfig +2 -0
@@ -1,5 +1,7 @@ config RISCV32 bool + select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting() config RISCV64 bool + select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting()
target/xtensa/Kconfig +1 -0
@@ -1,2 +1,3 @@ config XTENSA bool + select SEMIHOSTING
Signature · 1 line
2.43.0
Quoted 5 lines · Paolo Bonzini
Just like all other dependencies, these can be expressed in
Kconfigfiles rather than in the default configurations.Signed-off-by Paolo Bonzini <[email protected]>
Acked-by Alistair Francis <[email protected]>
Alistair
Quoted 140 lines
--- configs/devices/m68k-softmmu/default.mak | 2 -- configs/devices/mips-softmmu/common.mak | 3 --- configs/devices/nios2-softmmu/default.mak | 2 -- configs/devices/riscv32-softmmu/default.mak | 2 -- configs/devices/riscv64-softmmu/default.mak | 2 -- configs/devices/xtensa-softmmu/default.mak | 2 -- target/m68k/Kconfig | 1 + target/mips/Kconfig | 1 + target/nios2/Kconfig | 1 + target/riscv/Kconfig | 2 ++ target/xtensa/Kconfig | 1 + 11 files changed, 6 insertions(+), 13 deletions(-)configs/devices/m68k-softmmu/default.mak +0
-2@@ -1,7 +1,5 @@ # Default configuration for m68k-softmmu -CONFIG_SEMIHOSTING=y - # Boards: # CONFIG_AN5206=yconfigs/devices/mips-softmmu/common.mak +0
-3@@ -1,8 +1,5 @@ # Common mips*-softmmu CONFIG defines -# CONFIG_SEMIHOSTING is always required on this architecture -CONFIG_SEMIHOSTING=y - CONFIG_ISA_BUS=y CONFIG_PCI=y CONFIG_PCI_DEVICES=yconfigs/devices/nios2-softmmu/default.mak +0
-2@@ -1,7 +1,5 @@ # Default configuration for nios2-softmmu -CONFIG_SEMIHOSTING=y - # Boards: # CONFIG_NIOS2_10M50=yconfigs/devices/riscv32-softmmu/default.mak +0
-2@@ -3,8 +3,6 @@ # Uncomment the following lines to disable these optional devices: # #CONFIG_PCI_DEVICES=n -CONFIG_SEMIHOSTING=y -CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y # Boards: #configs/devices/riscv64-softmmu/default.mak +0
-2@@ -3,8 +3,6 @@ # Uncomment the following lines to disable these optional devices: # #CONFIG_PCI_DEVICES=n -CONFIG_SEMIHOSTING=y -CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y # Boards: #configs/devices/xtensa-softmmu/default.mak +0
-2@@ -1,7 +1,5 @@ # Default configuration for Xtensa -CONFIG_SEMIHOSTING=y - # Boards: # CONFIG_XTENSA_SIM=ytarget/m68k/Kconfig +1
-0@@ -1,2 +1,3 @@ config M68K bool + select SEMIHOSTINGtarget/mips/Kconfig +1
-0@@ -1,5 +1,6 @@ config MIPS bool + select SEMIHOSTING config MIPS64 booltarget/nios2/Kconfig +1
-0@@ -1,2 +1,3 @@ config NIOS2 bool + select SEMIHOSTINGtarget/riscv/Kconfig +2
-0@@ -1,5 +1,7 @@ config RISCV32 bool + select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting() config RISCV64 bool + select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting()target/xtensa/Kconfig +1
-1@@ -1,2 +1,3 @@ config XTENSA bool + select SEMIHOSTING --2.43.0
Alex Bennée
AppliedQuoted 2 lines · Paolo Bonzini
Just like all other dependencies, these can be expressed in
Kconfigfiles rather than in the default configurations.
Queued to semihosting/next, thanks.
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro