Commit Graph

58 Commits

Author SHA1 Message Date
Panu Matilainen
e17ab00173 - Update to 16.04
- Drop all patches, they're not needed anymore
- Drop linker script generation, its upstream now
- Enable vhost numa support again
2016-04-14 11:57:55 +03:00
Panu Matilainen
4047cbae56 Generalize target/machine/etc macros to enable i686 builds 2016-03-16 11:42:54 +02:00
Panu Matilainen
1ceb8c515f vhost numa code causes crashes, disable until upstream fixes 2016-03-16 11:42:44 +02:00
Panu Matilainen
07453da715 Disable unmaintained librte_power as per upstream recommendation 2016-03-01 15:55:23 +02:00
Panu Matilainen
1382547ee6 Eliminate the need for the enic patch by eliminating second -Wall from CFLAGS 2016-03-01 15:53:34 +02:00
Panu Matilainen
e0841ab3ef Drop no longer needed -Wno-error=array-bounds from CFLAGS 2016-03-01 15:43:29 +02:00
Panu Matilainen
847f834b03 Drop no longer needed bnx2x patch, the gcc false positive has been fixed 2016-03-01 15:11:21 +02:00
Neil Horman
587202f673 Resolves: bz 1307431 2016-02-16 11:52:18 -05:00
Dennis Gilmore
cbae95aa4c - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 18:58:08 +00:00
Panu Matilainen
4cc0992520 Quoting fixes in the spec
- Use a different quoting method to avoid messing up vim syntax highlighting
- CONFIG_RTE_MACHINE value needs to be quoted too
2016-01-26 14:45:14 +02:00
Panu Matilainen
251f084df4 Enable librte_vhost NUMA-awareness
Note that CONFIG_RTE_LIBRTE_VHOST is enabled by default in DPDK
since 2.1 so we can "reuse" the redundant line for enabling
CONFIG_RTE_LIBRTE_VHOST_NUMA instead, but that makes the commit
seem slightly strange.
2016-01-25 18:07:12 +02:00
Panu Matilainen
7c36913a2c Adopt upstream standard installation layout now that there is one.
Now that upstream has a sane "make install" target, lets use it.
The layout (inevitably) differs a fair bit from what we had but
better switch now than live with our own invention forevermore.
2016-01-20 16:43:58 +02:00
Panu Matilainen
01bbd4d155 Define & use a macro for includedir location throughout the spec
No layout changes here, just to make next step simpler.
2016-01-20 16:43:27 +02:00
Panu Matilainen
457cb5d962 Make option matching stricter in spec setconf
Previously commented-out and/or similar entries could mistakenly
match the grep (but fail the sed-part). Doesn't affect current
config so its just future-proofing.
2016-01-20 16:43:13 +02:00
Panu Matilainen
15b653debe Establish a driver directory for automatic driver loading.
Configure %{_libdir}/dpdk-pmds as the default driver directory,
from which all pmds will be automatically loaded, no more manually
messing with -d, yay. Add symlinks for all the pmds, and move the
unversioned pmd symlinks to -devel where they belong.
2016-01-20 16:43:05 +02:00
Panu Matilainen
02e4a4c017 Update to dpdk 2.2.0 2016-01-20 16:42:01 +02:00
Aaron Conole
171be5b8cc dpdk.spec: Build an examples SDK package
Include examples to be built with the SDK, and ratchet the version
forward. IMPORTANT: this commit disables the vm_power_manager example
since that particular example requires in-tree builds, which is not
possible. Also disabled is the ip_pipeline build, since it depends on
sse4 intrinsics.

Signed-off-by: Aaron Conole <aconole@redhat.com>
2015-11-13 17:29:18 -05:00
Panu Matilainen
76d6fa84dd dpdk.spec: PMD builds: Enable the bnx2x build
This commit enables building the Broadcom NetXtreme II poll mode
driver.

Signed-off-by: Aaron Conole <aconole@redhat.com>
2015-11-13 17:29:18 -05:00
Aaron Conole
8f01de6aa6 dpdk.spec: linkage and file overlap
The dpdk-tools and dpdk packages copy the same files into %{_bindir}, which
should be avoided. To fix this, setup an exclude.

Additionally, there's an odd requirement imposed by using dpdk because of
libraries not being linked in properly against the shared objects generated.
To fix this, introduce the dt-needed patch. A version of this has been
accepted upstream for some PMDs, but we will do this for all.

Signed-off-by: Aaron Conole <aconole@redhat.com>
2015-11-13 17:29:13 -05:00
Aaron Conole
4c2d5be950 dpdk.spec: dpdk: bundle tools separately
There is currently a bug where -tools and the main package include the
same dpdk tools, which were meant to be separate packages. Remove the
overlap.

Signed-off-by: Aaron Conole <aconole@redhat.com>
2015-10-27 10:43:04 -04:00
Aaron Conole
adda67cfae dpdk.spec: Add a changelog entry and bump minor to 2
The last commit in the series.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
2015-10-02 13:52:24 -04:00
Aaron Conole
735beec75d dpdk.spec: Rename the combined library from libintel_dpdk to libdpdk
This brings the combined library linker script inline with the upstream
definition of the combined library name in DPDK 2.1.0 release.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
2015-10-02 13:43:41 -04:00
Aaron Conole
549fcba8af dpdk-config: Remove the config patch file, and rewrite the config file
post `make config'

The config file patch is a bit cumbersome to maintain. Any time the
config files change, it will be required to regenerate this patch
against the new sets of files. Additionally, it is difficult to build
modular enable/disables for these configs down the line.

With this set, create a block for PMD enable/disable. RHEL wants this
enabled, for sure.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
2015-10-02 13:42:43 -04:00
Aaron Conole
b6c6c73d13 dpdk.spec: Move the sdk libraries into the system library directory
Ensure that the DPDK libraries, including the combined library, are
found at the system library path.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
2015-10-02 13:42:15 -04:00
Aaron Conole
4a192f9082 dpdk.spec: Allow builds to have the lightweight api-guide as well as the full pdf build
The PDF guides drag a large amount of build requirements with them, and
because of the reliance on the DejaVu texlive package, will not build on
RHEL7. To keep the option of the PDF guide for Fedora, while allowing
RH to build, make this a tunable which Fedora can default 'on'.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
2015-10-02 13:39:26 -04:00
Panu Matilainen
a0dcad0075 dpdk.spec: Make lib and include available both ways in the SDK paths
This is for consistency's sake.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: NeilHorman <nhorman@redhat.com>
2015-10-02 13:37:57 -04:00
Aaron Conole
7c47af9e00 dpdk.spec: Remove the combined build option
The desired end effect of build is to have a combined library, and it will
not be going away. The upstream combined library is considered bloatware
which creates issues when library versions start moving, so force the
issue by using linker script instead.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
2015-10-02 13:37:27 -04:00
Aaron Conole
f961f12771 dpdk.spec: Include the scripts directory.
Some makefiles refer to the scripts in the directory, and eg
pktgen make fails without the script foo. To allow these builds
to succeed, include the scripts directory

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
2015-10-02 13:22:54 -04:00
Aaron Conole
24952bd83d dpdk.spec: Do not honor environmental IDs for RTE_SDK, etc.
As part of the dpdk solution, we include an extensible profile option
which automatically configures the dpdk 'RTE' environment
variables. However, these will create build issues if we attempt to
build packages on a machine which has these packages installed. To
combat this, we undefine these variables in the build environment.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
2015-10-02 13:22:35 -04:00
Aaron Conole
a199da43d0 dpdk.spec: Package the dpdk tools into the -tools package
Currently, dpdk ships with cpu_layout.py and dpdk_bind_tools.py to
assist with common workflow. Create a tools package which can encompass
these items.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
2015-10-02 13:22:09 -04:00
Aaron Conole
f8c235c907 dpdk.spec: Do not avoid array-bounds warning by patching the sources
By changing the array size to work around a spurious warning from gcc,
we run the risk of breaking future code which may rely on the array's
size (using, ex: sizeof). Since this array-bounds failure is the product
of gcc-5.x, and not actually an error here, it can safely be ignored.

We need to keep the -Wformat warning, however, because that will trigger
build errors in some of the PMD builds.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Neil Horman <nhorman@redhat.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
2015-10-02 13:09:31 -04:00
Neil Horman
b41f5f17db Resolves: bz 1256137 2015-08-27 10:22:53 -04:00
Dennis Gilmore
7c2b8051e3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 04:21:54 +00:00
Neil Horman
08e6bfe50b Resolves: bz1208922 2015-04-08 13:06:44 -04:00
Panu Matilainen
b6f873410a Always build with -fPIC
Upstream makefiles only enable -fPIC for shared libs, but on x86_64
its needed for static libs as well when combined with dynamic linking
(otherwise building eg OVS fails with relocation R_X86_64_32 errors)

Ciuld arch-conditionalize it but then this only builds for x86_64 atm...
2015-01-28 14:16:52 +02:00
Panu Matilainen
95f7100692 Doh, bogus dates + remember to bump the actual release too 2015-01-28 11:34:22 +02:00
Panu Matilainen
ae10511010 Add a spec option to build as shared libraries, default to static for now 2015-01-28 11:28:50 +02:00
Panu Matilainen
38bb65f078 Comply to Fedora static package policies
- Move static libraries to -devel, there's no point in having them
  in a "runtime" package anyway
- Add dpdk-static = %{version}-%{release} provide to -devel
- Have the main package always own the private library directory though
2015-01-28 11:19:25 +02:00
Panu Matilainen
27aaece3a8 Add a spec option to build a combined library
Upstream has an option to build a combined library but it'll clash
with symbol/library versioning once it lands. Use a linker script
instead of an actual ELF DSO to side-step the issue.

GROUP() is used instead of INPUT() to avoid the need for manual
ordering of the umphteen libraries.
2015-01-28 09:58:09 +02:00
Panu Matilainen
ec727d4980 Drop now unnecessary debug flags patch.
Rpm %optflags always include -g, and as the optflags are getting passed
to the build since commit fe6107da05, this
is no longer needed.
2015-01-28 09:51:39 +02:00
Panu Matilainen
4821395c6a - Avoid variable expansion in the spec here-documents during build 2015-01-28 09:43:17 +02:00
Panu Matilainen
a29f6a5c1c - Arrange for RTE_SDK environment + directory layout expected by DPDK apps
- Drop config from main package, it shouldn't be needed at runtime
2015-01-27 13:36:01 +02:00
Panu Matilainen
a5cd001107 - Avoid unnecessary use of %global, lazy expansion is normally better.
(yes, Fedora recommendation is misguided wrt this: %global has unwanted
  side-effects when used blindly for "everything", greetings from your
  friendly former rpm maintainer)
- Drop unused destdir macro from the spec while at it
2015-01-27 13:12:49 +02:00
Panu Matilainen
35685e0998 - Drop unnecessary kernel-devel BR, we are not building kernel modules 2015-01-27 11:10:36 +02:00
Panu Matilainen
3ef7e4235b - Clean up summaries and descriptions. The ones copied from upstream
spec talk about kernel modules and other yadda that we will not
  include.
2015-01-27 11:06:53 +02:00
Panu Matilainen
6490c5afe3 - Avoid unnecessary %exclude by not copying unpackaged content to buildroot,
%exclude can have side-effects when used like this.
2015-01-27 10:43:00 +02:00
Panu Matilainen
8cefbac7ec - Force sane mode on the headers 2015-01-27 10:35:59 +02:00
Panu Matilainen
e78dfa8543 - Copy the headers instead of broken symlinks into -devel package 2015-01-27 10:35:41 +02:00
Peter Robinson
52b0853653 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-16 09:40:50 +00:00
John W. Linville
fe6107da05 Several changes to better comply with packaging guidelines...
- Use EXTRA_CFLAGS to include standard Fedora compiler flags in build
- Set CONFIG_RTE_MACHINE=default to build for least-common-denominator machines
- Turn-off build of librte_acl, since it does not build on default machines
- Turn-off build of physical device PMDs that require kernel support
- Clean-up the install rules to match current packaging
- Correct changelog versions 1.0.7 -> 1.7.0
- Remove ix86 from ExclusiveArch -- it does not build with above changes
2014-07-21 10:02:39 -04:00