| 1 | libqos_srcs = files( |
| 2 | '../libqtest.c', |
| 3 | '../libqmp.c', |
| 4 | |
| 5 | 'qgraph.c', |
| 6 | 'qos_external.c', |
| 7 | 'pci.c', |
| 8 | 'fw_cfg.c', |
| 9 | 'libqos-malloc.c', |
| 10 | 'libqos.c', |
| 11 | 'sdhci-cmd.c', |
| 12 | |
| 13 | # spapr |
| 14 | 'malloc-spapr.c', |
| 15 | 'libqos-spapr.c', |
| 16 | 'rtas.c', |
| 17 | 'pci-spapr.c', |
| 18 | |
| 19 | # pc |
| 20 | 'pci-pc.c', |
| 21 | 'malloc-pc.c', |
| 22 | 'libqos-pc.c', |
| 23 | 'ahci.c', |
| 24 | |
| 25 | # usb |
| 26 | 'usb.c', |
| 27 | |
| 28 | # qgraph devices: |
| 29 | 'e1000e.c', |
| 30 | 'i2c.c', |
| 31 | 'i2c-imx.c', |
| 32 | 'i2c-omap.c', |
| 33 | 'igb.c', |
| 34 | 'sdhci.c', |
| 35 | 'virtio.c', |
| 36 | 'virtio-balloon.c', |
| 37 | 'virtio-blk.c', |
| 38 | 'vhost-user-blk.c', |
| 39 | 'virtio-mmio.c', |
| 40 | 'virtio-net.c', |
| 41 | 'virtio-pci.c', |
| 42 | 'virtio-pci-modern.c', |
| 43 | 'virtio-rng.c', |
| 44 | 'virtio-scsi.c', |
| 45 | 'virtio-serial.c', |
| 46 | 'virtio-iommu.c', |
| 47 | 'virtio-gpio.c', |
| 48 | 'virtio-scmi.c', |
| 49 | 'generic-pcihost.c', |
| 50 | |
| 51 | # qgraph machines: |
| 52 | 'aarch64-xlnx-zcu102-machine.c', |
| 53 | 'arm-imx25-pdk-machine.c', |
| 54 | 'arm-raspi2-machine.c', |
| 55 | 'arm-sabrelite-machine.c', |
| 56 | 'arm-smdkc210-machine.c', |
| 57 | 'arm-virt-machine.c', |
| 58 | 'arm-xilinx-zynq-a9-machine.c', |
| 59 | 'ppc64_pseries-machine.c', |
| 60 | 'x86_64_pc-machine.c', |
| 61 | 'riscv-virt-machine.c', |
| 62 | 'loongarch-virt-machine.c', |
| 63 | |
| 64 | # SMMU: |
| 65 | 'qos-iommu-testdev.c', |
| 66 | 'qos-smmuv3.c', |
| 67 | ) |
| 68 | |
| 69 | if have_virtfs |
| 70 | libqos_srcs += files('virtio-9p.c', 'virtio-9p-client.c') |
| 71 | endif |
| 72 | |
| 73 | if config_all_devices.has_key('CONFIG_RISCV_IOMMU') |
| 74 | libqos_srcs += files('riscv-iommu.c', 'qos-riscv-iommu.c') |
| 75 | endif |
| 76 | if config_all_devices.has_key('CONFIG_VTD') |
| 77 | libqos_srcs += files('qos-intel-iommu.c') |
| 78 | endif |
| 79 | if config_all_devices.has_key('CONFIG_TPCI200') |
| 80 | libqos_srcs += files('tpci200.c') |
| 81 | endif |
| 82 | |
| 83 | libqos = static_library('qos', libqos_srcs + genh, |
| 84 | build_by_default: false) |
| 85 | |
| 86 | qos = declare_dependency(objects: libqos.extract_all_objects(recursive: false)) |