Commit Graph

27 Commits

Author SHA1 Message Date
Hongxu Jia
cf8e415965 layer.conf: Add thud to LAYERSERIES_COMPAT
Since `9ec5a8a layer.conf: Drop sumo from LAYERSERIES_CORENAMES' and
`9867924 layer.conf: Add thud to LAYERSERIES_CORENAMES' applied in oe-core,
add thud to LAYERSERIES_COMPAT

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2018-10-08 12:56:19 +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
Changqing Li
9f6f79b1f5 dpdk-dev-libibverbs: fix do_fetch error
original URI have been deleted(don't know why). Here I just
use yocto source mirror to fix fetch error.  But it should be
replace by offcial libibverbs here: "https://github.com/linux-rdma/
rdma-core/tree/master/libibverbs".

Since I don't have condition to test dpdk function, I can only go far
to build success, and seems there is big change between source on
yocto mirror and the offcial libibverbs, so for now, just use the mirror.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2018-09-03 08:47:53 +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
a60454d2b3 Add compatible for "sumo"
The latest Yocto has changed the LAYERSERIES_CORENAMES to "sumo".
So add it to the compatible list.

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
Chen Qi
e17c1e96dd dpdk-dev-libibverbs: provide virtual/libibverbs
dpdk-dev-libibverbs is not the only recipe that provides libibverbs.
In meta-cloud-services, we have a recipe called libibverbs. As both
recipes provide the same library, we need to avoid building both at
the same time at one build.

Use 'virtual/libibverbs' to avoid such problem.

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
Chen Qi
784b9e759c dpdk-dev-libibverbs: fix do_fetch failure in case of multilib
Fix to correctly set SRC_URI and S to avoid do_fetch failure in case of multilib.

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
Saul Wold
a98b71ccad Initial commit from meta-intel 2f1bcac3fb3b42602f689fb4a1092aa5f4cf0c8a 2017-09-26 08:25:37 -07:00