]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | # SPDX-License-Identifier: BSD-3-Clause |
2 | # Copyright(c) 2018 Intel Corporation | |
3 | ||
4 | allow_experimental_apis = true | |
5 | sources += files('virtio_ethdev.c', | |
6 | 'virtio_pci.c', | |
7 | 'virtio_rxtx.c', | |
8 | 'virtio_rxtx_simple.c', | |
9 | 'virtqueue.c') | |
10 | deps += ['kvargs', 'bus_pci'] | |
11 | ||
12 | if arch_subdir == 'x86' | |
13 | sources += files('virtio_rxtx_simple_sse.c') | |
14 | elif arch_subdir == 'arm' and host_machine.cpu_family().startswith('aarch64') | |
15 | sources += files('virtio_rxtx_simple_neon.c') | |
16 | endif | |
17 | ||
9f95a23c | 18 | if is_linux |
11fdf7f2 TL |
19 | dpdk_conf.set('RTE_VIRTIO_USER', 1) |
20 | ||
21 | sources += files('virtio_user_ethdev.c', | |
22 | 'virtio_user/vhost_kernel.c', | |
23 | 'virtio_user/vhost_kernel_tap.c', | |
24 | 'virtio_user/vhost_user.c', | |
25 | 'virtio_user/virtio_user_dev.c') | |
26 | deps += ['bus_vdev'] | |
27 | endif |