kconfig: use "select" to enable semihosting
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Feb 2024 16:38:07 +0000 (16:38 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 9 Feb 2024 17:52:30 +0000 (17:52 +0000)
Just like all other dependencies, these can be expressed in Kconfig
files rather than in the default configurations.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20240129115809.1039924-1-pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240207163812.3231697-10-alex.bennee@linaro.org>

configs/devices/m68k-softmmu/default.mak
configs/devices/mips-softmmu/common.mak
configs/devices/nios2-softmmu/default.mak
configs/devices/riscv32-softmmu/default.mak
configs/devices/riscv64-softmmu/default.mak
configs/devices/xtensa-softmmu/default.mak
target/m68k/Kconfig
target/mips/Kconfig
target/nios2/Kconfig
target/riscv/Kconfig
target/xtensa/Kconfig

index 7f8619e427865f6b7040c3c1334fbfa665315771..8dcaa28ed3831ddb55a7884ed1d0f40dc612aca7 100644 (file)
@@ -1,7 +1,5 @@
 # Default configuration for m68k-softmmu
 
-CONFIG_SEMIHOSTING=y
-
 # Boards:
 #
 CONFIG_AN5206=y
index 7da99327a77954aa494acce21961c588453f714c..1a853841b27b18cb2d953d3d9a4a993a1f4af304 100644 (file)
@@ -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
index 1bc4082ea9960d98165df25c811dde2cce9b3fdf..e130d024e6241feb743124a9a82df5e36edb62f0 100644 (file)
@@ -1,7 +1,5 @@
 # Default configuration for nios2-softmmu
 
-CONFIG_SEMIHOSTING=y
-
 # Boards:
 #
 CONFIG_NIOS2_10M50=y
index d847bd5692ec5364e4f6608c58073f75cf615bfe..94a236c9c25b23ae1c28aeb49a554f546cb4d35c 100644 (file)
@@ -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:
 #
index bc69301fa4a6cc85ebaa9fff67fde4346e8bcb5b..3f6805944849c14aa6ae16cf40a02836b3234ea6 100644 (file)
@@ -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:
 #
index 4fe1bf00c94bd3f5f0a6a51e989d6d0fd00f8584..49e4c9da88c57c22781312e66e74e6451185dd4e 100644 (file)
@@ -1,7 +1,5 @@
 # Default configuration for Xtensa
 
-CONFIG_SEMIHOSTING=y
-
 # Boards:
 #
 CONFIG_XTENSA_SIM=y
index 23debad519aa62f44559d5d47764998237899950..9eae71486ffcad58dbebae5af3f3646433f42cca 100644 (file)
@@ -1,2 +1,3 @@
 config M68K
     bool
+    select SEMIHOSTING
index 6adf1453548577bfd5fa900676e5b16177f30e92..eb19c94c7d467aafad4652bb89f35cf94e2441a5 100644 (file)
@@ -1,5 +1,6 @@
 config MIPS
     bool
+    select SEMIHOSTING
 
 config MIPS64
     bool
index 1529ab8950d812378655260b4b96a1e705aba6b8..c65550c861a248611af51a74d7d7777b4be3799f 100644 (file)
@@ -1,2 +1,3 @@
 config NIOS2
     bool
+    select SEMIHOSTING
index b9e5932f13f2fa4b8f2662473ef857543837adaf..adb7de3f37d5c7f6f99a622d5a05a7bf2adceae3 100644 (file)
@@ -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()
index a3c8dc7f6d763441502b9d29447ca256df62d168..5e46049262dea1e3fb4163e6ee6858d13beb1696 100644 (file)
@@ -1,2 +1,3 @@
 config XTENSA
     bool
+    select SEMIHOSTING