| 1 | i386_ss = ss.source_set() |
| 2 | i386_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 | |
| 11 | i386_ss.add(when: 'CONFIG_APIC', if_true: files('vapic.c')) |
| 12 | i386_ss.add(when: 'CONFIG_X86_IOMMU', if_true: files('x86-iommu.c'), |
| 13 | if_false: files('x86-iommu-stub.c')) |
| 14 | i386_ss.add(when: 'CONFIG_AMD_IOMMU', if_true: files('amd_iommu.c'), |
| 15 | if_false: files('amd_iommu-stub.c')) |
| 16 | i386_ss.add(when: 'CONFIG_I440FX', if_true: files('pc_piix.c')) |
| 17 | i386_ss.add(when: 'CONFIG_ISAPC', if_true: files('isapc.c')) |
| 18 | i386_ss.add(when: 'CONFIG_MICROVM', if_true: files('x86-common.c', 'microvm.c', 'acpi-microvm.c', 'microvm-dt.c')) |
| 19 | i386_ss.add(when: 'CONFIG_NITRO_ENCLAVE', if_true: files('nitro_enclave.c')) |
| 20 | i386_ss.add(when: 'CONFIG_Q35', if_true: files('pc_q35.c')) |
| 21 | i386_ss.add(when: 'CONFIG_VMMOUSE', if_true: files('vmmouse.c')) |
| 22 | i386_ss.add(when: 'CONFIG_VMPORT', if_true: files('vmport.c')) |
| 23 | i386_ss.add(when: 'CONFIG_VTD', if_true: files('intel_iommu.c')) |
| 24 | i386_ss.add(when: 'CONFIG_VTD_ACCEL', if_true: files('intel_iommu_accel.c')) |
| 25 | i386_ss.add(when: 'CONFIG_SGX', if_true: files('sgx-epc.c','sgx.c'), |
| 26 | if_false: files('sgx-stub.c')) |
| 27 | if have_hmp |
| 28 | stub_ss.add(files('sgx-hmp-stub.c')) |
| 29 | endif |
| 30 | |
| 31 | i386_ss.add(when: 'CONFIG_ACPI', if_true: files('acpi-common.c')) |
| 32 | i386_ss.add(when: 'CONFIG_PC', if_true: files( |
| 33 | 'x86-common.c', |
| 34 | 'pc.c', |
| 35 | 'pc_sysfw.c', |
| 36 | 'acpi-build.c', |
| 37 | 'port92.c')) |
| 38 | i386_ss.add(when: 'CONFIG_X86_FW_OVMF', if_true: files('pc_sysfw_ovmf.c'), |
| 39 | if_false: files('pc_sysfw_ovmf-stubs.c')) |
| 40 | i386_ss.add(when: 'CONFIG_TDX', if_true: files('tdvf.c', 'tdvf-hob.c')) |
| 41 | |
| 42 | subdir('kvm') |
| 43 | subdir('mshv') |
| 44 | subdir('xen') |
| 45 | |
| 46 | i386_ss.add_all(xenpv_ss) |
| 47 | |
| 48 | hw_arch += {'i386': i386_ss} |