Commit Graph

38 Commits

Author SHA1 Message Date
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
Neil Horman
ec5bc3b8bf Updating dpdk to official 1.7.0 release 2014-07-10 15:52:18 -04:00
Neil Horman
bde8fdab7e Fixing up release numbering 2014-07-03 07:45:28 -04:00
Neil Horman
7a1c5e6a86 Fixing some build issues (debuginfo empty, 32 bit build missing) 2014-07-01 11:09:58 -04:00
Neil Horman
0199132fc5 Fix doc package dependency 2014-06-11 07:01:39 -04:00
Neil Horman
25e15fa854 Fixed doc package arch dependency 2014-06-09 12:50:30 -04:00
Neil Horman
fe88d522a3 Fix verbose build and debuginfo missing source issue 2014-06-09 12:07:22 -04:00
Neil Horman
851bae4c15 Initial commit 2014-06-06 17:00:32 -04:00
Fedora Release Engineering
723b55a28f Initial setup of the repo 2014-06-06 19:46:27 +00:00