diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2016-01-28 14:23:52 +0200 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-02-05 16:40:11 -0800 |
commit | eea0cdb5c56a45653ec4215439e51bfe2504add3 (patch) | |
tree | bd17f68511d50331cf4dc65397516c554d3bdb6d /rhel | |
parent | 8ae587b9ca211c97acb01fc67937169c20e04df7 (diff) | |
download | openvswitch-eea0cdb5c56a45653ec4215439e51bfe2504add3.tar.gz |
rhel: Add '--with dpdk' spec option to build DPDK-enabled packages
Requires DPDK >= 2.2 as that is the first version to have a standard
install layout which we can discover without help from user.
Additionally document the option in INSTALL.Fedora.md.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/openvswitch-fedora.spec.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index e65566553..704b6bbe5 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -16,6 +16,8 @@ # If libcap-ng isn't available and there is no need for running OVS # as regular user, specify the '--without libcapng' %bcond_without libcapng +# To enable DPDK support, specify '--with dpdk' when building +%bcond_with dpdk # Enable PIE, bz#955181 %global _hardened_build 1 @@ -49,6 +51,10 @@ BuildRequires: procps-ng %if %{with libcapng} BuildRequires: libcap-ng libcap-ng-devel %endif +%if %{with dpdk} +BuildRequires: dpdk-devel >= 2.2.0 +Provides: %{name}-dpdk = %{version}-%{release} +%endif Requires: openssl iproute module-init-tools #Upstream kernel commit 4f647e0a3c37b8d5086214128614a136064110c3 @@ -118,6 +124,9 @@ overlays and security groups. %else --disable-libcapng \ %endif +%if %{with dpdk} + --with-dpdk=$(dirname %{_datadir}/dpdk/*/.config) \ +%endif --enable-ssl \ --with-pkidir=%{_sharedstatedir}/openvswitch/pki |