f-stack/dpdk/drivers/net/virtio/meson.build

30 lines
768 B
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation
allow_experimental_apis = true
sources += files('virtio_ethdev.c',
'virtio_pci.c',
'virtio_rxtx.c',
'virtio_rxtx_simple.c',
'virtqueue.c')
deps += ['kvargs', 'bus_pci']
if arch_subdir == 'x86'
sources += files('virtio_rxtx_simple_sse.c')
2020-06-18 16:55:50 +00:00
elif arch_subdir == 'ppc_64'
sources += files('virtio_rxtx_simple_altivec.c')
2022-09-02 07:34:10 +00:00
elif arch_subdir == 'arm' and dpdk_conf.get('RTE_ARCH_64')
2019-06-25 11:12:58 +00:00
sources += files('virtio_rxtx_simple_neon.c')
endif
2020-06-18 16:55:50 +00:00
if is_linux
2019-06-25 11:12:58 +00:00
dpdk_conf.set('RTE_VIRTIO_USER', 1)
sources += files('virtio_user_ethdev.c',
'virtio_user/vhost_kernel.c',
'virtio_user/vhost_kernel_tap.c',
'virtio_user/vhost_user.c',
'virtio_user/virtio_user_dev.c')
deps += ['bus_vdev']
endif