Skip to content

Commit

Permalink
kconfig: use "select" to enable semihosting
Browse files Browse the repository at this point in the history
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]>
Acked-by: Alistair Francis <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
bonzini authored and stsquad committed Feb 9, 2024
1 parent 1fed4cd commit 2df1eb2
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 13 deletions.
2 changes: 0 additions & 2 deletions configs/devices/m68k-softmmu/default.mak
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Default configuration for m68k-softmmu

CONFIG_SEMIHOSTING=y

# Boards:
#
CONFIG_AN5206=y
Expand Down
3 changes: 0 additions & 3 deletions configs/devices/mips-softmmu/common.mak
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions configs/devices/nios2-softmmu/default.mak
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Default configuration for nios2-softmmu

CONFIG_SEMIHOSTING=y

# Boards:
#
CONFIG_NIOS2_10M50=y
Expand Down
2 changes: 0 additions & 2 deletions configs/devices/riscv32-softmmu/default.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down
2 changes: 0 additions & 2 deletions configs/devices/riscv64-softmmu/default.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down
2 changes: 0 additions & 2 deletions configs/devices/xtensa-softmmu/default.mak
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Default configuration for Xtensa

CONFIG_SEMIHOSTING=y

# Boards:
#
CONFIG_XTENSA_SIM=y
Expand Down
1 change: 1 addition & 0 deletions target/m68k/Kconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
config M68K
bool
select SEMIHOSTING
1 change: 1 addition & 0 deletions target/mips/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
config MIPS
bool
select SEMIHOSTING

config MIPS64
bool
Expand Down
1 change: 1 addition & 0 deletions target/nios2/Kconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
config NIOS2
bool
select SEMIHOSTING
2 changes: 2 additions & 0 deletions target/riscv/Kconfig
Original file line number Diff line number Diff line change
@@ -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()
1 change: 1 addition & 0 deletions target/xtensa/Kconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
config XTENSA
bool
select SEMIHOSTING

0 comments on commit 2df1eb2

Please sign in to comment.