qemu/hw/char/Kconfig
Peter Maydell f88c9cd804 rust: Kconfig: Factor out whether PL011 is Rust or C
Currently every board that uses the PL011 duplicates the logic that
selects the Rust implementation if Rust was enabled and the C
implementation if it does not.  Factor this out into a separate
Kconfig stanza, so that boards can go back to simply doing "select
PL011" and get whichever implementation is correct for the build.

This fixes a compilation failure if CONFIG_VMAPPLE is enabled
in a Rust build, because hw/vmapple/Kconfig didn't have the
"pick the Rust PL011 if Rust is enabled" logic in it.

Fixes: 59f4d65584 ("hw/vmapple/vmapple: Add vmapple machine type")
Reported-by: Tanish Desai <tanishdesai37@gmail.com>
Analyzed-by: Tanish Desai <tanishdesai37@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/r/20250319193110.1565578-2-peter.maydell@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-03-20 09:23:18 +01:00

94 lines
1.1 KiB
Text

config ESCC
bool
config HTIF
bool
config PARALLEL
bool
default y
depends on ISA_BUS
config PL011
bool
# The PL011 has both a Rust and a C implementation
select PL011_C if !HAVE_RUST
select X_PL011_RUST if HAVE_RUST
config PL011_C
bool
config SERIAL
bool
config SERIAL_ISA
bool
default y
depends on ISA_BUS
select SERIAL
config SERIAL_MM
bool
select SERIAL
config SERIAL_PCI
bool
default y if PCI_DEVICES
depends on PCI
select SERIAL
config SERIAL_PCI_MULTI
bool
default y if PCI_DEVICES
depends on PCI
select SERIAL
config VIRTIO_SERIAL
bool
default y
depends on VIRTIO
config STM32F2XX_USART
bool
config STM32L4X5_USART
bool
config CMSDK_APB_UART
bool
config SCLPCONSOLE
bool
config TERMINAL3270
bool
config SH_SCI
bool
config RENESAS_SCI
bool
config AVR_USART
bool
config DIVA_GSP
bool
config MCHP_PFSOC_MMUART
bool
select SERIAL
config SIFIVE_UART
bool
config GOLDFISH_TTY
bool
config SHAKTI_UART
bool
config IP_OCTAL_232
bool
default y
depends on IPACK