1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2018 Intel Corporation 3 4allow_experimental_apis = true 5sources += files('virtio_ethdev.c', 6 'virtio_pci.c', 7 'virtio_rxtx.c', 8 'virtio_rxtx_simple.c', 9 'virtqueue.c') 10deps += ['kvargs', 'bus_pci'] 11 12if arch_subdir == 'x86' 13 sources += files('virtio_rxtx_simple_sse.c') 14elif arch_subdir == 'arm' and host_machine.cpu_family().startswith('aarch64') 15 sources += files('virtio_rxtx_simple_neon.c') 16endif 17 18if is_linux 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'] 27endif 28