forked from DPDK/dpdk
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdpdk-vhost-vfe.spec
56 lines (42 loc) · 1.82 KB
/
dpdk-vhost-vfe.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014 6WIND S.A.
# Copyright 2018 Luca Boccassi <[email protected]>
%define __arch_install_post QA_SKIP_RPATHS=2
Name: dpdk-vhost-vfe
Version: 24.10.0.rc1
Release: 1%{?dist}
Packager: [email protected]
URL: https://github.com/Mellanox/dpdk-vhost-vfe
Source: https://github.com/Mellanox/dpdk-vhost-vfe/archive/refs/tags/dpdk-vhost-vfe-%{version}.tar.gz
Summary: Vhost Acceleration for VirtIO VF PCI devices
Group: System Environment/Libraries
License: BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-only
ExclusiveArch: x86_64
%global dst_prefix /opt/mellanox/dpdk-vhost-vfe
%global dst_lib lib64
%define _unpackaged_files_terminate_build 0
BuildRequires: zlib-devel, meson, libev-devel, libuuid-devel, numactl-devel
Requires: libev, libuuid, zlib, numactl-libs
%description
Virtio VF PCIe devices can be attached to the guest VM using vhost acceleration software stack.
This enables performing live migration of guest VMs.
Vhost acceleration software stack is built using open-source BSD licensed DPDK.
%prep
%setup -q
MESON_PARAMS=%{?meson_params}
ENABLED_DRVS="vdpa/virtio,common/virtio,common/virtio_mi,common/virtio_ha"
MACHINE=default
meson %{target} -Dexamples=vdpa -Dc_args='-DRTE_LIBRTE_VDPA_DEBUG' --debug -Dprefix=%{dst_prefix} -Dlibdir=%{dst_prefix}/%{dst_lib} --includedir=include/dpdk -Dmachine=$MACHINE -Dmax_ethports=1024 -Denable_drivers=$ENABLED_DRVS -Dtests=false -Ddrivers_install_subdir=dpdk/pmds --default-library=static -Dlog_ts=true $MESON_PARAMS
%build
%{__ninja} -v -C %{target}
%install
rm -rf %{buildroot}
DESTDIR=%{buildroot} %{__ninja} -v -C %{target} install
%files
%{dst_prefix}/bin/vfe-vhost*
%{dst_prefix}/bin/vhostmgmt
%{dst_prefix}/bin/dpdk-vfe-vdpa
%{dst_prefix}/bin/dpdk-virtio-ha
%{dst_prefix}/bin/check_pf_reset.sh
%{dst_prefix}/doc/vhostd.md
/usr/lib/systemd/system/*