]>
Commit | Line | Data |
---|---|---|
b4c8eece MAL |
1 | hw_display_modules = {} |
2 | ||
3 | softmmu_ss.add(when: 'CONFIG_DDC', if_true: files('i2c-ddc.c')) | |
4 | softmmu_ss.add(when: 'CONFIG_EDID', if_true: files('edid-generate.c', 'edid-region.c')) | |
5 | ||
6 | softmmu_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('ramfb.c')) | |
7 | softmmu_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('ramfb-standalone.c')) | |
8 | ||
b4c8eece MAL |
9 | softmmu_ss.add(when: 'CONFIG_VGA_CIRRUS', if_true: files('cirrus_vga.c')) |
10 | softmmu_ss.add(when: ['CONFIG_VGA_CIRRUS', 'CONFIG_VGA_ISA'], if_true: files('cirrus_vga_isa.c')) | |
11 | softmmu_ss.add(when: 'CONFIG_G364FB', if_true: files('g364fb.c')) | |
12 | softmmu_ss.add(when: 'CONFIG_JAZZ_LED', if_true: files('jazz_led.c')) | |
13 | softmmu_ss.add(when: 'CONFIG_PL110', if_true: files('pl110.c')) | |
14 | softmmu_ss.add(when: 'CONFIG_SII9022', if_true: files('sii9022.c')) | |
15 | softmmu_ss.add(when: 'CONFIG_SSD0303', if_true: files('ssd0303.c')) | |
16 | softmmu_ss.add(when: 'CONFIG_SSD0323', if_true: files('ssd0323.c')) | |
17 | softmmu_ss.add(when: 'CONFIG_XEN', if_true: files('xenfb.c')) | |
18 | ||
19 | softmmu_ss.add(when: 'CONFIG_VGA_PCI', if_true: files('vga-pci.c')) | |
20 | softmmu_ss.add(when: 'CONFIG_VGA_ISA', if_true: files('vga-isa.c')) | |
21 | softmmu_ss.add(when: 'CONFIG_VGA_ISA_MM', if_true: files('vga-isa-mm.c')) | |
22 | softmmu_ss.add(when: 'CONFIG_VMWARE_VGA', if_true: files('vmware_vga.c')) | |
23 | softmmu_ss.add(when: 'CONFIG_BOCHS_DISPLAY', if_true: files('bochs-display.c')) | |
24 | ||
25 | softmmu_ss.add(when: 'CONFIG_BLIZZARD', if_true: files('blizzard.c')) | |
26 | softmmu_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_fimd.c')) | |
27 | softmmu_ss.add(when: 'CONFIG_FRAMEBUFFER', if_true: files('framebuffer.c')) | |
28 | softmmu_ss.add(when: 'CONFIG_ZAURUS', if_true: files('tc6393xb.c')) | |
29 | ||
30 | softmmu_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_dss.c')) | |
31 | softmmu_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_lcd.c')) | |
32 | softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_fb.c')) | |
33 | softmmu_ss.add(when: 'CONFIG_SM501', if_true: files('sm501.c')) | |
34 | softmmu_ss.add(when: 'CONFIG_TCX', if_true: files('tcx.c')) | |
35 | softmmu_ss.add(when: 'CONFIG_CG3', if_true: files('cg3.c')) | |
36 | softmmu_ss.add(when: 'CONFIG_MACFB', if_true: files('macfb.c')) | |
37 | softmmu_ss.add(when: 'CONFIG_NEXTCUBE', if_true: files('next-fb.c')) | |
38 | ||
39 | specific_ss.add(when: 'CONFIG_VGA', if_true: files('vga.c')) | |
40 | ||
41 | if config_all_devices.has_key('CONFIG_QXL') | |
42 | qxl_ss = ss.source_set() | |
e3624e8b GH |
43 | qxl_ss.add(when: 'CONFIG_QXL', if_true: [files('qxl.c', 'qxl-logger.c', 'qxl-render.c'), |
44 | pixman, spice]) | |
b4c8eece MAL |
45 | hw_display_modules += {'qxl': qxl_ss} |
46 | endif | |
47 | ||
b4c8eece MAL |
48 | softmmu_ss.add(when: 'CONFIG_DPCD', if_true: files('dpcd.c')) |
49 | softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx_dp.c')) | |
50 | ||
b4c8eece MAL |
51 | softmmu_ss.add(when: 'CONFIG_ARTIST', if_true: files('artist.c')) |
52 | ||
53 | softmmu_ss.add(when: [pixman, 'CONFIG_ATI_VGA'], if_true: files('ati.c', 'ati_2d.c', 'ati_dbg.c')) | |
54 | ||
55 | if config_all_devices.has_key('CONFIG_VIRTIO_GPU') | |
56 | virtio_gpu_ss = ss.source_set() | |
57 | virtio_gpu_ss.add(when: 'CONFIG_VIRTIO_GPU', | |
e349693a | 58 | if_true: [files('virtio-gpu-base.c', 'virtio-gpu.c'), pixman]) |
cdb1fba0 PMD |
59 | virtio_gpu_ss.add(when: 'CONFIG_LINUX', if_true: files('virtio-gpu-udmabuf.c'), |
60 | if_false: files('virtio-gpu-udmabuf-stubs.c')) | |
b4c8eece | 61 | virtio_gpu_ss.add(when: 'CONFIG_VHOST_USER_GPU', if_true: files('vhost-user-gpu.c')) |
7b0de5b7 | 62 | hw_display_modules += {'virtio-gpu': virtio_gpu_ss} |
e349693a GH |
63 | |
64 | virtio_gpu_gl_ss = ss.source_set() | |
587d59d6 | 65 | virtio_gpu_gl_ss.add(when: ['CONFIG_VIRTIO_GPU', virgl, opengl], |
e349693a GH |
66 | if_true: [files('virtio-gpu-gl.c', 'virtio-gpu-virgl.c'), pixman, virgl]) |
67 | hw_display_modules += {'virtio-gpu-gl': virtio_gpu_gl_ss} | |
b4c8eece MAL |
68 | endif |
69 | ||
74acdf0a GH |
70 | if config_all_devices.has_key('CONFIG_VIRTIO_PCI') |
71 | virtio_gpu_pci_ss = ss.source_set() | |
72 | virtio_gpu_pci_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_PCI'], | |
73 | if_true: [files('virtio-gpu-pci.c'), pixman]) | |
74 | virtio_gpu_pci_ss.add(when: ['CONFIG_VHOST_USER_GPU', 'CONFIG_VIRTIO_PCI'], | |
75 | if_true: files('vhost-user-gpu-pci.c')) | |
76 | hw_display_modules += {'virtio-gpu-pci': virtio_gpu_pci_ss} | |
17cdac0b GH |
77 | |
78 | virtio_gpu_pci_gl_ss = ss.source_set() | |
587d59d6 | 79 | virtio_gpu_pci_gl_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_PCI', virgl, opengl], |
17cdac0b GH |
80 | if_true: [files('virtio-gpu-pci-gl.c'), pixman]) |
81 | hw_display_modules += {'virtio-gpu-pci-gl': virtio_gpu_pci_gl_ss} | |
74acdf0a GH |
82 | endif |
83 | ||
1e1f9c20 GH |
84 | if config_all_devices.has_key('CONFIG_VIRTIO_VGA') |
85 | virtio_vga_ss = ss.source_set() | |
86 | virtio_vga_ss.add(when: 'CONFIG_VIRTIO_VGA', | |
87 | if_true: [files('virtio-vga.c'), pixman]) | |
88 | virtio_vga_ss.add(when: 'CONFIG_VHOST_USER_VGA', | |
89 | if_true: files('vhost-user-vga.c')) | |
90 | hw_display_modules += {'virtio-vga': virtio_vga_ss} | |
b36eb886 GH |
91 | |
92 | virtio_vga_gl_ss = ss.source_set() | |
587d59d6 | 93 | virtio_vga_gl_ss.add(when: ['CONFIG_VIRTIO_VGA', virgl, opengl], |
b36eb886 GH |
94 | if_true: [files('virtio-vga-gl.c'), pixman]) |
95 | hw_display_modules += {'virtio-vga-gl': virtio_vga_gl_ss} | |
1e1f9c20 | 96 | endif |
7b0de5b7 | 97 | |
b4c8eece MAL |
98 | specific_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_lcdc.c')) |
99 | ||
100 | modules += { 'hw-display': hw_display_modules } |