2019-08-17 09:03:19 +02:00
|
|
|
hw_display_modules = {}
|
|
|
|
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: 'CONFIG_DDC', if_true: files('i2c-ddc.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_EDID', if_true: files('edid-generate.c', 'edid-region.c'))
|
|
|
|
|
|
|
|
system_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('ramfb.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('ramfb-standalone.c'))
|
|
|
|
|
|
|
|
system_ss.add(when: 'CONFIG_VGA_CIRRUS', if_true: files('cirrus_vga.c'))
|
|
|
|
system_ss.add(when: ['CONFIG_VGA_CIRRUS', 'CONFIG_VGA_ISA'], if_true: files('cirrus_vga_isa.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_G364FB', if_true: files('g364fb.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_JAZZ_LED', if_true: files('jazz_led.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_PL110', if_true: files('pl110.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_SII9022', if_true: files('sii9022.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_SSD0303', if_true: files('ssd0303.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_SSD0323', if_true: files('ssd0323.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_XEN_BUS', if_true: files('xenfb.c'))
|
|
|
|
|
|
|
|
system_ss.add(when: 'CONFIG_VGA_PCI', if_true: files('vga-pci.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_VGA_ISA', if_true: files('vga-isa.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_VGA_MMIO', if_true: files('vga-mmio.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_VMWARE_VGA', if_true: files('vmware_vga.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_BOCHS_DISPLAY', if_true: files('bochs-display.c'))
|
|
|
|
|
|
|
|
system_ss.add(when: 'CONFIG_BLIZZARD', if_true: files('blizzard.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_fimd.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_FRAMEBUFFER', if_true: files('framebuffer.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_ZAURUS', if_true: files('tc6393xb.c'))
|
|
|
|
|
|
|
|
system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_dss.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_lcd.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_fb.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_SM501', if_true: files('sm501.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_TCX', if_true: files('tcx.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_CG3', if_true: files('cg3.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_MACFB', if_true: files('macfb.c'))
|
|
|
|
system_ss.add(when: 'CONFIG_NEXTCUBE', if_true: files('next-fb.c'))
|
|
|
|
|
|
|
|
system_ss.add(when: 'CONFIG_VGA', if_true: files('vga.c'))
|
2023-10-02 08:57:04 +02:00
|
|
|
system_ss.add(when: 'CONFIG_VIRTIO', if_true: files('virtio-dmabuf.c'))
|
2019-08-17 09:03:19 +02:00
|
|
|
|
2022-10-17 12:21:36 +02:00
|
|
|
if (config_all_devices.has_key('CONFIG_VGA_CIRRUS') or
|
|
|
|
config_all_devices.has_key('CONFIG_VGA_PCI') or
|
|
|
|
config_all_devices.has_key('CONFIG_VMWARE_VGA') or
|
|
|
|
config_all_devices.has_key('CONFIG_ATI_VGA')
|
|
|
|
)
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-vga.c'),
|
2022-10-17 12:21:36 +02:00
|
|
|
if_false: files('acpi-vga-stub.c'))
|
|
|
|
endif
|
|
|
|
|
2019-08-17 09:03:19 +02:00
|
|
|
if config_all_devices.has_key('CONFIG_QXL')
|
|
|
|
qxl_ss = ss.source_set()
|
2020-09-14 15:42:19 +02:00
|
|
|
qxl_ss.add(when: 'CONFIG_QXL', if_true: [files('qxl.c', 'qxl-logger.c', 'qxl-render.c'),
|
|
|
|
pixman, spice])
|
2022-10-17 12:21:36 +02:00
|
|
|
qxl_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-vga.c'),
|
|
|
|
if_false: files('acpi-vga-stub.c'))
|
2019-08-17 09:03:19 +02:00
|
|
|
hw_display_modules += {'qxl': qxl_ss}
|
|
|
|
endif
|
|
|
|
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: 'CONFIG_DPCD', if_true: files('dpcd.c'))
|
2023-08-30 11:38:38 +02:00
|
|
|
system_ss.add(when: 'CONFIG_XLNX_DISPLAYPORT', if_true: files('xlnx_dp.c'))
|
2019-08-17 09:03:19 +02:00
|
|
|
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: 'CONFIG_ARTIST', if_true: files('artist.c'))
|
2019-08-17 09:03:19 +02:00
|
|
|
|
2023-09-05 14:51:53 +02:00
|
|
|
system_ss.add(when: 'CONFIG_ATI_VGA', if_true: [files('ati.c', 'ati_2d.c', 'ati_dbg.c'), pixman])
|
2019-08-17 09:03:19 +02:00
|
|
|
|
2022-10-17 12:21:36 +02:00
|
|
|
|
2019-08-17 09:03:19 +02:00
|
|
|
if config_all_devices.has_key('CONFIG_VIRTIO_GPU')
|
|
|
|
virtio_gpu_ss = ss.source_set()
|
|
|
|
virtio_gpu_ss.add(when: 'CONFIG_VIRTIO_GPU',
|
2021-04-30 13:35:42 +02:00
|
|
|
if_true: [files('virtio-gpu-base.c', 'virtio-gpu.c'), pixman])
|
2023-11-03 09:17:48 +01:00
|
|
|
if host_os == 'linux'
|
2023-05-26 12:20:39 +02:00
|
|
|
virtio_gpu_ss.add(files('virtio-gpu-udmabuf.c'))
|
|
|
|
else
|
|
|
|
virtio_gpu_ss.add(files('virtio-gpu-udmabuf-stubs.c'))
|
|
|
|
endif
|
2019-08-17 09:03:19 +02:00
|
|
|
virtio_gpu_ss.add(when: 'CONFIG_VHOST_USER_GPU', if_true: files('vhost-user-gpu.c'))
|
2020-09-14 15:42:24 +02:00
|
|
|
hw_display_modules += {'virtio-gpu': virtio_gpu_ss}
|
2021-04-30 13:35:42 +02:00
|
|
|
|
2022-12-19 13:58:30 +01:00
|
|
|
if virgl.found() and opengl.found()
|
|
|
|
virtio_gpu_gl_ss = ss.source_set()
|
|
|
|
virtio_gpu_gl_ss.add(when: ['CONFIG_VIRTIO_GPU', virgl, opengl],
|
|
|
|
if_true: [files('virtio-gpu-gl.c', 'virtio-gpu-virgl.c'), pixman, virgl])
|
|
|
|
hw_display_modules += {'virtio-gpu-gl': virtio_gpu_gl_ss}
|
|
|
|
endif
|
2023-03-21 17:47:36 +01:00
|
|
|
|
|
|
|
if rutabaga.found()
|
|
|
|
virtio_gpu_rutabaga_ss = ss.source_set()
|
|
|
|
virtio_gpu_rutabaga_ss.add(when: ['CONFIG_VIRTIO_GPU', rutabaga],
|
|
|
|
if_true: [files('virtio-gpu-rutabaga.c'), pixman])
|
|
|
|
hw_display_modules += {'virtio-gpu-rutabaga': virtio_gpu_rutabaga_ss}
|
|
|
|
endif
|
2019-08-17 09:03:19 +02:00
|
|
|
endif
|
|
|
|
|
2020-10-23 08:46:17 +02:00
|
|
|
if config_all_devices.has_key('CONFIG_VIRTIO_PCI')
|
|
|
|
virtio_gpu_pci_ss = ss.source_set()
|
|
|
|
virtio_gpu_pci_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_PCI'],
|
|
|
|
if_true: [files('virtio-gpu-pci.c'), pixman])
|
|
|
|
virtio_gpu_pci_ss.add(when: ['CONFIG_VHOST_USER_GPU', 'CONFIG_VIRTIO_PCI'],
|
|
|
|
if_true: files('vhost-user-gpu-pci.c'))
|
|
|
|
hw_display_modules += {'virtio-gpu-pci': virtio_gpu_pci_ss}
|
2021-04-30 13:35:45 +02:00
|
|
|
|
2022-12-19 13:58:30 +01:00
|
|
|
if virgl.found() and opengl.found()
|
|
|
|
virtio_gpu_pci_gl_ss = ss.source_set()
|
|
|
|
virtio_gpu_pci_gl_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_PCI', virgl, opengl],
|
|
|
|
if_true: [files('virtio-gpu-pci-gl.c'), pixman])
|
|
|
|
hw_display_modules += {'virtio-gpu-pci-gl': virtio_gpu_pci_gl_ss}
|
|
|
|
endif
|
2023-03-21 17:47:36 +01:00
|
|
|
if rutabaga.found()
|
|
|
|
virtio_gpu_pci_rutabaga_ss = ss.source_set()
|
|
|
|
virtio_gpu_pci_rutabaga_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_PCI', rutabaga],
|
|
|
|
if_true: [files('virtio-gpu-pci-rutabaga.c'), pixman])
|
|
|
|
hw_display_modules += {'virtio-gpu-pci-rutabaga': virtio_gpu_pci_rutabaga_ss}
|
|
|
|
endif
|
2020-10-23 08:46:17 +02:00
|
|
|
endif
|
|
|
|
|
2020-10-23 08:46:18 +02:00
|
|
|
if config_all_devices.has_key('CONFIG_VIRTIO_VGA')
|
|
|
|
virtio_vga_ss = ss.source_set()
|
|
|
|
virtio_vga_ss.add(when: 'CONFIG_VIRTIO_VGA',
|
|
|
|
if_true: [files('virtio-vga.c'), pixman])
|
|
|
|
virtio_vga_ss.add(when: 'CONFIG_VHOST_USER_VGA',
|
|
|
|
if_true: files('vhost-user-vga.c'))
|
2022-10-17 12:21:36 +02:00
|
|
|
virtio_vga_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-vga.c'),
|
|
|
|
if_false: files('acpi-vga-stub.c'))
|
2020-10-23 08:46:18 +02:00
|
|
|
hw_display_modules += {'virtio-vga': virtio_vga_ss}
|
2021-04-30 13:35:47 +02:00
|
|
|
|
|
|
|
virtio_vga_gl_ss = ss.source_set()
|
2021-06-03 11:31:35 +02:00
|
|
|
virtio_vga_gl_ss.add(when: ['CONFIG_VIRTIO_VGA', virgl, opengl],
|
2021-04-30 13:35:47 +02:00
|
|
|
if_true: [files('virtio-vga-gl.c'), pixman])
|
2022-10-17 12:21:36 +02:00
|
|
|
virtio_vga_gl_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-vga.c'),
|
|
|
|
if_false: files('acpi-vga-stub.c'))
|
2021-04-30 13:35:47 +02:00
|
|
|
hw_display_modules += {'virtio-vga-gl': virtio_vga_gl_ss}
|
2023-03-21 17:47:36 +01:00
|
|
|
|
|
|
|
if rutabaga.found()
|
|
|
|
virtio_vga_rutabaga_ss = ss.source_set()
|
|
|
|
virtio_vga_rutabaga_ss.add(when: ['CONFIG_VIRTIO_VGA', rutabaga],
|
|
|
|
if_true: [files('virtio-vga-rutabaga.c'), pixman])
|
|
|
|
virtio_vga_rutabaga_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-vga.c'),
|
|
|
|
if_false: files('acpi-vga-stub.c'))
|
|
|
|
hw_display_modules += {'virtio-vga-rutabaga': virtio_vga_rutabaga_ss}
|
|
|
|
endif
|
2020-10-23 08:46:18 +02:00
|
|
|
endif
|
2020-09-14 15:42:24 +02:00
|
|
|
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_lcdc.c'))
|
2019-08-17 09:03:19 +02:00
|
|
|
|
|
|
|
modules += { 'hw-display': hw_display_modules }
|