Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20210330' into...
[qemu/ar7.git] / hw / s390x / meson.build
blob327e9c93afa9dd0defda23edcd0dd4db43ed942d
1 s390x_ss = ss.source_set()
2 s390x_ss.add(files(
3   'ap-bridge.c',
4   'ap-device.c',
5   'ccw-device.c',
6   'css-bridge.c',
7   'css.c',
8   'event-facility.c',
9   'ipl.c',
10   's390-ccw.c',
11   's390-pci-bus.c',
12   's390-pci-inst.c',
13   's390-skeys.c',
14   's390-stattrib.c',
15   's390-virtio-hcall.c',
16   'sclp.c',
17   'sclpcpu.c',
18   'sclpquiesce.c',
19   'tod-qemu.c',
20   'tod.c',
22 s390x_ss.add(when: 'CONFIG_KVM', if_true: files(
23   'tod-kvm.c',
24   's390-skeys-kvm.c',
25   's390-stattrib-kvm.c',
26   'pv.c',
28 s390x_ss.add(when: 'CONFIG_S390_CCW_VIRTIO', if_true: files('s390-virtio-ccw.c'))
29 s390x_ss.add(when: 'CONFIG_TERMINAL3270', if_true: files('3270-ccw.c'))
30 s390x_ss.add(when: 'CONFIG_VFIO', if_true: files('s390-pci-vfio.c'))
32 virtio_ss = ss.source_set()
33 virtio_ss.add(files('virtio-ccw.c'))
34 virtio_ss.add(when: 'CONFIG_VIRTIO_BALLOON', if_true: files('virtio-ccw-balloon.c'))
35 virtio_ss.add(when: 'CONFIG_VIRTIO_BLK', if_true: files('virtio-ccw-blk.c'))
36 virtio_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('virtio-ccw-crypto.c'))
37 virtio_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-ccw-input.c'))
38 virtio_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio-ccw-net.c'))
39 virtio_ss.add(when: 'CONFIG_VIRTIO_RNG', if_true: files('virtio-ccw-rng.c'))
40 virtio_ss.add(when: 'CONFIG_VIRTIO_SCSI', if_true: files('virtio-ccw-scsi.c'))
41 virtio_ss.add(when: 'CONFIG_VIRTIO_SERIAL', if_true: files('virtio-ccw-serial.c'))
42 if have_virtfs
43   virtio_ss.add(when: 'CONFIG_VIRTIO_9P', if_true: files('virtio-ccw-9p.c'))
44 endif
45 virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock-ccw.c'))
46 virtio_ss.add(when: 'CONFIG_VHOST_USER_FS', if_true: files('vhost-user-fs-ccw.c'))
47 s390x_ss.add_all(when: 'CONFIG_VIRTIO_CCW', if_true: virtio_ss)
49 hw_arch += {'s390x': s390x_ss}
51 hw_s390x_modules = {}
52 virtio_gpu_ccw_ss = ss.source_set()
53 virtio_gpu_ccw_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_CCW'],
54                       if_true: [files('virtio-ccw-gpu.c'), pixman])
55 hw_s390x_modules += {'virtio-gpu-ccw': virtio_gpu_ccw_ss}
56 modules += {'hw-s390x': hw_s390x_modules}