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