Commit Graph

47 Commits

Author SHA1 Message Date
Anuj Mittal
a84fef2b5f dpdk/19.11: upgrade 19.11.0 -> 19.11.1
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-20 10:05:38 +08:00
Anuj Mittal
b11f6044df dpdk/18.11: upgrade 18.11.5 -> 18.11.7
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-04-20 09:55:30 +08:00
He Zhe
99b7249250 dpdk: Backport to fix build failure for kernel v5.6
kernel/linux/kni/kni_net.c:786:20: error: initialization of
'void (*)(struct net_device *, unsigned int)' from incompatible pointer type
'void (*)(struct net_device *)' [-Werror=incompatible-pointer-types]
  786 |  .ndo_tx_timeout = kni_net_tx_timeout,
      |                    ^~~~~~~~~~~~~~~~~~

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-03-25 16:15:05 +08:00
Yi Zhao
f290fa81c6 dpdk: fix do_install error for test programs
The commit 8c2fb51323 introduces an error
when installing test programs:

/buildarea//build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_memory.o):
In function `eal_legacy_hugepage_init':
eal_memory.c:(.text+0x1f71): undefined reference to `memfd_create'
/buildarea/build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_memalloc.o):
In function `get_seg_fd.constprop.0':
eal_memalloc.c:(.text+0x61f): undefined reference to `memfd_create'
eal_memalloc.c:(.text+0x696): undefined reference to `memfd_create'
/buildarea/build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_memalloc.o):
In function `eal_memalloc_init':
eal_memalloc.c:(.text+0x21ad): undefined reference to `memfd_create'
/buildarea/build/tmp/work/intel_corei7_64-poky-linux/dpdk/19.11.0-r0/git/x86_64-native-linuxapp-gcc/lib/librte_pmd_memif.a(rte_eth_memif.o):rte_eth_memif.c:(.text+0xbc3): more undefined references to `memfd_create' follow
collect2: error: ld returned 1 exit status

The test programs have been complied and install to ${S}/test/app
directory. We just need to ship them to ${D} directory.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-25 15:05:53 +08:00
He Zhe
f47d49eb14 Revert "dpdk: Add check against necessary kernel options"
This reverts commit c29b7a480a.

Unfortunely, the reverted commit does not work in every cases. If
KERNEL_FEATURES was set in somewhere else other than a global configuration,
for example in kernel's bbappend, there would be no way for dpdk recipe to
detect if the wanted feature has been enabled.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-24 16:56:40 +08:00
He Zhe
24cd3e389b dpdk: Fix dpdk18 build with CONFIG_NAME
5eba511c5e ("dpdk: add recipe for 19.11") introduces CONFIG_NAME and
TEST_DIR for dpdk19 but not for dpdk18. Fix it.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-18 13:54:05 +08:00
He Zhe
c29b7a480a dpdk: Add check against necessary kernel options
dpdk requires kernel option features/intel-dpdk/intel-dpdk.scc to build.
We'd better warn users in advance before they meet some confusing errors
at compile-time.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-18 13:53:47 +08:00
Anuj Mittal
f2cd2cd5cc dpdk: set CVE_PRODUCT
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-02-04 15:22:54 +08:00
Anuj Mittal
5eba511c5e dpdk: add recipe for 19.11
Introduce recipe to build 19.11 LTS.

This version changes the location of test directory to be under app and
also changes the name of config file to common_linux.

Introduce variables in shared inc to control these two differences.
These are set to values used by earlier versions by default.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-01-30 15:23:36 +08:00
Anuj Mittal
a314567e72 dpdk/17.11: remove
17.11 LTS will be end of life in Jan 2020.

https://core.dpdk.org/roadmap/

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-01-30 06:38:06 +08:00
Anuj Mittal
8c2fb51323 dpdk: simplify test installation
Use Makefile target to install tests instead of the current error prone
method.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-01-29 15:22:34 +08:00
Anuj Mittal
712e354efd dpdk: upgrade 17.11.8 -> 17.11.9
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-01-29 15:22:34 +08:00
Anuj Mittal
af6ed65b8b dpdk: upgrade 18.11.4 -> 18.11.5
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-01-29 15:22:34 +08:00
Anuj Mittal
3df31347ed dpdk: RDEPENDS on python3 instead of python2
Also make sure that scripts use python3.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2020-01-29 15:17:16 +08:00
Anuj Mittal
aa883aead3 dpdk: upgrade 18.11.2 -> 18.11.4
Also includes fix for CVE-2019-14818.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-11-13 08:31:54 +08:00
Anuj Mittal
e69ca49e00 dpdk: upgrade 17.11.6 -> 17.11.8
Also includes fix for CVE-2019-14818.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-11-13 08:31:07 +08:00
Changqing Li
704c203cb5 dpdk: support usrmerge
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-09-04 07:26:58 +08:00
He Zhe
9ec4231c28 dpdk: Fix exmples and test _FORTIFY_SOURCE build failure
When building examples and tests with GCC9, the following errors come up,

 error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
  382 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1: all warnings being treated as errors

dpdk itself already appends -O3 the EXTRA_CFLAGS for some of those cases, but
dpdk.inc overwrites EXTRA_CFLAGS when evoking make. This patches adds it back.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-07-19 10:51:04 +08:00
He Zhe
1a80901a65 dpdk: Remove 18.05
We have already had 18.11 and 18.05 is not a stable version.
This patch also removes the patches no longer needed.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-07-05 09:01:31 +08:00
Anuj Mittal
4d71b0b3f6 dpdk: upgrade 18.11.1 -> 18.11.2
And remove backported patch from recipe.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-06-13 16:13:32 +08:00
Anuj Mittal
5a5077db88 dpdk: upgrade 17.11.3 -> 17.11.6
Also remove upstreamed patches and prevent the host app from getting
installed.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-06-12 15:49:18 +08:00
He Zhe
be387ee9e5 dpdk: mk: disable warning for packed member pointer
Backport a patch from upstream to fix the following build failure.

x86_64-native-linuxapp-gcc/include/rte_ether.h:178:2: error:
converting a packed 'const struct ether_addr' pointer (alignment 1) to a 'unaligned_uint16_t' {aka 'const short
 unsigned int'} pointer (alignment 2) may result in an unaligned pointer value [-Werror=address-of-packed-member]
|   178 |  const unaligned_uint16_t *ea_words = (const unaligned_uint16_t *)ea;
|       |  ^~~~~

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-06-11 14:03:38 +08:00
Kevin Hao
c8c30c2c4e Introduce the v18.11.1 bb
This is the latest LTS version.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-05-27 21:46:29 +08:00
Kevin Hao
e252ee850f Move two patches to the version specific bb
These two patches can't be applied to the new version DPDK, so move
them to the version specific bb.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-05-27 21:46:23 +08:00
Kevin Hao
8be75da5f6 dpdk_18.05: Make the LICENSE more accurate
Adjust the LICENSE according to the license files.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-05-27 21:46:18 +08:00
Anuj Mittal
4582cde191 dpdk: package helper makefiles
Install helper makefiles [1] that might be helpful when compiling apps with
SDK or on target.

[1] https://doc.dpdk.org/guides/prog_guide/dev_kit_build_system.html#makefile-description

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2019-03-29 13:57:16 +08:00
Arsalan H. Awan
7f6bffb51c dpdk: support build with external & multilib toolchains
This fixes dpdk build when using an external toolchain by adding
the HOST_CC_ARCH & TOOLCHAIN_OPTIONS to EXTRA_CFLAGS the way
standard Yocto does it to gather all the necessary flags for
compilation.
The TOOLCHAIN_OPTIONS variable also provides the sysroot flag, so
no need to explicitly provide the sysroot.

This commit also fixes the build when using a multilib toolchain
by adding the LDEMULATION flags to the LDFLAGS via TUNE_LDARGS
which are required while linking with a multilib toolchain.

Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2018-10-03 17:12:01 +08:00
Kevin Hao
229c0bc374 dpdk: Install the examples&test app in a dpdk specific directory
Currently the examples&test applications would be installed into
directories like:
  /usr/share/examples
  /usr/share/test

These directories just seem too general, so change them to:
  /usr/share/dpdk/examples
  /usr/share/dpdk/test

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2018-09-21 13:04:50 +08:00
Anuj Mittal
a3c96e04c7 dpdk-dev-libibverbs: remove
The upstream repo has been taken down and the role of libibverbs has
been taken over by rdma-core instead [1][2].

[1] https://www.openfabrics.org/downloads/verbs/README.html
[2] https://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git/tree/README

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2018-09-07 11:58:45 +08:00
He Zhe
c4a671b9d4 dpdk: Upgrade to 17.11.3
And add strncpy warning/error fixes for GCC8

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2018-08-17 14:15:43 +08:00
Tan, Raymond
b7c4b921d5 dpdk: upgrade to 18.05
This patch upgrades DPDK to the latest release of v18.05.

Signed-off-by: Tan, Raymond <raymond.tan@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2018-06-19 09:21:57 +08:00
Kevin Hao
9d2d7a6062 dpdk: Set the correct RTE_TARGET for x86 machines
The TARGET_ARCH may be different for different x86 machines,
for example i586(qemux86) and i686(genericx86). So choose the "x86"
override to set the correct RTE_TARGET for these machines.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-30 15:07:10 -07:00
Kevin Hao
002366a2af dpdk: Fix the self reference error when building with unsupported arch
Fix the following parse error when building with unsupported arch, such
as arm:
bb.data_smart.ExpansionError: Failure expanding variable RTE_TARGET, expression was ${RTE_TARGET} which triggered exception Exception: variable RTE_TARGET references itself!

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-30 15:07:05 -07:00
Kevin Hao
8722a569c3 dpdk: Add support for arm64
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-16 16:47:50 -07:00
Kevin Hao
250bc6207f dpdk: Add the missing return in get_dpdk_target_mach()
Otherwise it always return "default" no matter what we set in
"DPDK_TARGET_MACHINE".

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-16 16:47:50 -07:00
Kevin Hao
873cc2a144 dpdk: Remove the useless checksums
After changing to the git repo, these checksums become useless.
Just drop them.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-16 16:47:50 -07:00
Awais Belal
d82b045ffe dpdk: move common fragments to include
This cleans up the versioned recipes and moves the common
fragments to the include so to make the maintenance easy.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-12 09:00:48 -07:00
Kevin Hao
242f6362a3 dpdk: Use git repo
This is more convenient for development.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-12 08:57:21 -07:00
California Sullivan
eff812eeba dpdk: remove dpdk-16.04-Fix-for-misleading-indentation-error.patch
Upstream fixed the misleading indentation so this patch is no longer
necessary.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-09 16:47:22 -07:00
Kevin Hao
bac5c4c129 dpdk: Refresh the patches for the context changes
Using the following commands to refresh the patches in order to
suppress the fuzz warnings.
  devtool modify dpdk
  devtool finish --force-patch-refresh dpdk meta-dpdk-dir

No code change.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-09 12:14:52 -07:00
Kevin Hao
5566889da4 dpdk: Introduce the 17.11.1
This is the latest stable version.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-09 12:14:52 -07:00
Kevin Hao
1280395a44 dpdk: Factor out the license info into the specific bb
The license files may be different between different versions. So move
them into the specific bb files.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-09 12:14:52 -07:00
California Sullivan
cc4d9b770a dpdk.inc: fix missing numa.h by disabling NUMA options by default
Otherwise we get this:

| dpdk-18.02/lib/librte_eal/linuxapp/eal/eal_memory.c:27:10: fatal error: numa.h: No such file or directory
|  #include <numa.h>
|           ^~~~~~~~
| compilation terminated.

Use PACKAGECONFIG to optionally enable the numa option.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-04-03 17:58:42 -07:00
Awais Belal
6863a1c002 dpdk: upgrade to 18.02
This upgrades the dpdk package to 18.02 which is
the latest release and drops a patch that has
already been merged upstream in this package.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-03-30 11:11:38 -07:00
He Zhe
e20c4f5977 dpdk: Add dpdk-test to include test programs
Install and ship test programs into dpdk-test.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-01-05 12:32:44 -08:00
Chen Qi
c79ec498ac dpdk: use virtual/libibverbs
We have multiple recipes in different layers providing the same libibverbs
library, so we need to use virtual/libibverbs to avoid potential errors.

Make dpdk depend on virtual/libibverbs instead of hardcoding
dpdk-dev-libibverbs.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2018-01-05 12:23:27 -08:00
Saul Wold
67149d869e Removal of meta-intel content to make meta-dpdk standalone
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-26 08:35:13 -07:00