xref: /openbmc/qemu/hw/i386/meson.build (revision 2f44bea9)
1i386_ss = ss.source_set()
2i386_ss.add(files(
3  'fw_cfg.c',
4  'kvmvapic.c',
5  'e820_memory_layout.c',
6  'multiboot.c',
7  'x86.c',
8))
9
10i386_ss.add(when: 'CONFIG_X86_IOMMU', if_true: files('x86-iommu.c'),
11                                      if_false: files('x86-iommu-stub.c'))
12i386_ss.add(when: 'CONFIG_AMD_IOMMU', if_true: files('amd_iommu.c'))
13i386_ss.add(when: 'CONFIG_I440FX', if_true: files('pc_piix.c'))
14i386_ss.add(when: 'CONFIG_MICROVM', if_true: files('microvm.c', 'acpi-microvm.c'))
15i386_ss.add(when: 'CONFIG_Q35', if_true: files('pc_q35.c'))
16i386_ss.add(when: 'CONFIG_VMMOUSE', if_true: files('vmmouse.c'))
17i386_ss.add(when: 'CONFIG_VMPORT', if_true: files('vmport.c'))
18i386_ss.add(when: 'CONFIG_VTD', if_true: files('intel_iommu.c'))
19
20i386_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-common.c'))
21i386_ss.add(when: 'CONFIG_ACPI_HW_REDUCED', if_true: files('generic_event_device_x86.c'))
22i386_ss.add(when: 'CONFIG_PC', if_true: files(
23  'pc.c',
24  'pc_sysfw.c',
25  'acpi-build.c',
26  'port92.c'))
27i386_ss.add(when: 'CONFIG_X86_FW_OVMF', if_true: files('pc_sysfw_ovmf.c'),
28                                        if_false: files('pc_sysfw_ovmf-stubs.c'))
29
30subdir('kvm')
31subdir('xen')
32
33i386_ss.add_all(xenpv_ss)
34
35hw_arch += {'i386': i386_ss}
36