| 1 | system_ss.add([files( |
| 2 | 'cryptodev-builtin.c', |
| 3 | 'cryptodev.c', |
| 4 | 'hostmem-ram.c', |
| 5 | 'hostmem.c', |
| 6 | 'rng-builtin.c', |
| 7 | 'rng-egd.c', |
| 8 | 'rng.c', |
| 9 | 'confidential-guest-support.c', |
| 10 | ), numa]) |
| 11 | |
| 12 | if have_hmp |
| 13 | system_ss.add(files('cryptodev-hmp-cmds.c')) |
| 14 | endif |
| 15 | |
| 16 | if host_os != 'windows' |
| 17 | system_ss.add(files('rng-random.c')) |
| 18 | if host_os != 'emscripten' |
| 19 | system_ss.add(files('hostmem-file.c')) |
| 20 | system_ss.add([files('hostmem-shm.c'), rt]) |
| 21 | endif |
| 22 | endif |
| 23 | if host_os == 'linux' |
| 24 | system_ss.add(files('hostmem-memfd.c')) |
| 25 | system_ss.add(files('host_iommu_device.c')) |
| 26 | endif |
| 27 | if keyutils.found() |
| 28 | system_ss.add(keyutils, files('cryptodev-lkcf.c')) |
| 29 | endif |
| 30 | if have_vhost_user |
| 31 | system_ss.add(when: 'CONFIG_VIRTIO', if_true: files('vhost-user.c')) |
| 32 | endif |
| 33 | system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost.c')) |
| 34 | system_ss.add(when: 'CONFIG_IOMMUFD', if_true: files('iommufd.c')) |
| 35 | if have_vhost_user_crypto |
| 36 | system_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('cryptodev-vhost-user.c')) |
| 37 | endif |
| 38 | system_ss.add(when: gio, if_true: files('dbus-vmstate.c')) |
| 39 | system_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c')) |
| 40 | |
| 41 | system_ss.add(when: igvm, if_true: [files('igvm-cfg.c', 'igvm.c'), fdt]) |
| 42 | |
| 43 | system_ss.add(when: 'CONFIG_SPDM_SOCKET', if_true: files('spdm-socket.c')) |
| 44 | |
| 45 | subdir('tpm') |