7e6b5497ea
hw/char/serial currently contains the implementation of both TYPE_SERIAL and TYPE_SERIAL_MM. According to serial_class_init(), TYPE_SERIAL is an internal class while TYPE_SERIAL_MM is used by numerous machine types directly. Let's move the latter into its own module which makes the dependencies more obvious and the code more tidy. The includes and the dependencies have been converted mechanically except in the hw/char directories which were updated manually. The result was compile-tested. Now, only hw/char makes direct use of TYPE_SERIAL: # grep -r -e "select SERIAL" | grep -v SERIAL_ hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL hw/char/Kconfig: select SERIAL # grep -r -e "/serial\\.h" include/hw/char/serial-mm.h:#include "hw/char/serial.h" hw/char/serial-pci-multi.c:#include "hw/char/serial.h" hw/char/serial.c:#include "hw/char/serial.h" hw/char/serial-isa.c:#include "hw/char/serial.h" hw/char/serial-pci.c:#include "hw/char/serial.h" Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au> Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Link: https://lore.kernel.org/r/20240905073832.16222-4-shentey@gmail.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
42 lines
2.8 KiB
Meson
42 lines
2.8 KiB
Meson
system_ss.add(when: 'CONFIG_CADENCE', if_true: files('cadence_uart.c'))
|
|
system_ss.add(when: 'CONFIG_CMSDK_APB_UART', if_true: files('cmsdk-apb-uart.c'))
|
|
system_ss.add(when: 'CONFIG_ESCC', if_true: files('escc.c'))
|
|
system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_apbuart.c'))
|
|
system_ss.add(when: 'CONFIG_IBEX', if_true: files('ibex_uart.c'))
|
|
system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_serial.c'))
|
|
system_ss.add(when: 'CONFIG_IPACK', if_true: files('ipoctal232.c'))
|
|
system_ss.add(when: 'CONFIG_ISA_BUS', if_true: files('parallel-isa.c'))
|
|
system_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugcon.c'))
|
|
system_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_uart.c'))
|
|
system_ss.add(when: 'CONFIG_PARALLEL', if_true: files('parallel.c'))
|
|
system_ss.add(when: 'CONFIG_PL011', if_true: files('pl011.c'))
|
|
system_ss.add(when: 'CONFIG_SCLPCONSOLE', if_true: files('sclpconsole.c', 'sclpconsole-lm.c'))
|
|
system_ss.add(when: 'CONFIG_SERIAL', if_true: files('serial.c'))
|
|
system_ss.add(when: 'CONFIG_SERIAL_ISA', if_true: files('serial-isa.c'))
|
|
system_ss.add(when: 'CONFIG_SERIAL_MM', if_true: files('serial-mm.c'))
|
|
system_ss.add(when: 'CONFIG_SERIAL_PCI', if_true: files('serial-pci.c'))
|
|
system_ss.add(when: 'CONFIG_SERIAL_PCI_MULTI', if_true: files('serial-pci-multi.c'))
|
|
system_ss.add(when: 'CONFIG_SHAKTI_UART', if_true: files('shakti_uart.c'))
|
|
system_ss.add(when: 'CONFIG_VIRTIO_SERIAL', if_true: files('virtio-console.c'))
|
|
system_ss.add(when: 'CONFIG_XEN_BUS', if_true: files('xen_console.c'))
|
|
system_ss.add(when: 'CONFIG_XILINX', if_true: files('xilinx_uartlite.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_AVR_USART', if_true: files('avr_usart.c'))
|
|
system_ss.add(when: 'CONFIG_COLDFIRE', if_true: files('mcf_uart.c'))
|
|
system_ss.add(when: 'CONFIG_DIGIC', if_true: files('digic-uart.c'))
|
|
system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_uart.c'))
|
|
system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_uart.c'))
|
|
system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_aux.c'))
|
|
system_ss.add(when: 'CONFIG_RENESAS_SCI', if_true: files('renesas_sci.c'))
|
|
system_ss.add(when: 'CONFIG_SIFIVE_UART', if_true: files('sifive_uart.c'))
|
|
system_ss.add(when: 'CONFIG_SH_SCI', if_true: files('sh_serial.c'))
|
|
system_ss.add(when: 'CONFIG_STM32F2XX_USART', if_true: files('stm32f2xx_usart.c'))
|
|
system_ss.add(when: 'CONFIG_STM32L4X5_USART', if_true: files('stm32l4x5_usart.c'))
|
|
system_ss.add(when: 'CONFIG_MCHP_PFSOC_MMUART', if_true: files('mchp_pfsoc_mmuart.c'))
|
|
system_ss.add(when: 'CONFIG_HTIF', if_true: files('riscv_htif.c'))
|
|
system_ss.add(when: 'CONFIG_GOLDFISH_TTY', if_true: files('goldfish_tty.c'))
|
|
|
|
specific_ss.add(when: 'CONFIG_TERMINAL3270', if_true: files('terminal3270.c'))
|
|
specific_ss.add(when: 'CONFIG_VIRTIO', if_true: files('virtio-serial-bus.c'))
|
|
specific_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr_vty.c'))
|