mirror of
git://git.yoctoproject.org/meta-dpdk.git
synced 2025-07-19 21:09:04 +02:00
dpdk/20.11: add recipe
kernel module is provided using seperate dpdk-module recipe. Release notes: https://doc.dpdk.org/guides-20.11/rel_notes/release_20_11.html Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
parent
d511c4260b
commit
d4ddaf2e54
|
@ -0,0 +1,38 @@
|
||||||
|
From cf8f15824dc2dd306d9c7e111641bef045d623c2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Naveen Saini <naveen.kumar.saini@intel.com>
|
||||||
|
Date: Wed, 14 Apr 2021 16:03:10 +0800
|
||||||
|
Subject: [PATCH] meson.build:-march and -mcpu already passed by Yocto
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate
|
||||||
|
|
||||||
|
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
|
||||||
|
---
|
||||||
|
config/meson.build | 12 ++++++------
|
||||||
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/config/meson.build b/config/meson.build
|
||||||
|
index 2f150de3b8..41bb3e9ec4 100644
|
||||||
|
--- a/config/meson.build
|
||||||
|
+++ b/config/meson.build
|
||||||
|
@@ -94,12 +94,12 @@ dpdk_conf.set('RTE_MACHINE', machine)
|
||||||
|
machine_args = []
|
||||||
|
|
||||||
|
# ppc64 does not support -march= at all, use -mcpu and -mtune for that
|
||||||
|
-if host_machine.cpu_family().startswith('ppc')
|
||||||
|
- machine_args += '-mcpu=' + machine
|
||||||
|
- machine_args += '-mtune=' + machine
|
||||||
|
-else
|
||||||
|
- machine_args += '-march=' + machine
|
||||||
|
-endif
|
||||||
|
+#if host_machine.cpu_family().startswith('ppc')
|
||||||
|
+# machine_args += '-mcpu=' + machine
|
||||||
|
+# machine_args += '-mtune=' + machine
|
||||||
|
+#else
|
||||||
|
+# machine_args += '-march=' + machine
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
toolchain = cc.get_id()
|
||||||
|
dpdk_conf.set_quoted('RTE_TOOLCHAIN', toolchain)
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
64
recipes-extended/dpdk/dpdk_20.11.1.bb
Normal file
64
recipes-extended/dpdk/dpdk_20.11.1.bb
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
include dpdk.inc
|
||||||
|
|
||||||
|
SRC_URI += " \
|
||||||
|
file://0001-meson.build-march-and-mcpu-already-passed-by-Yocto.patch \
|
||||||
|
"
|
||||||
|
|
||||||
|
STABLE = "-stable"
|
||||||
|
BRANCH = "20.11"
|
||||||
|
SRCREV = "b1e71cf43153cca07db6cbb69fdca030ccf52234"
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
# kernel module is provide by dpdk-module recipe, so disable here
|
||||||
|
EXTRA_OEMESON = " -Denable_kmods=false \
|
||||||
|
-Dexamples=all \
|
||||||
|
"
|
||||||
|
|
||||||
|
COMPATIBLE_MACHINE = "null"
|
||||||
|
COMPATIBLE_HOST_libc-musl_class-target = "null"
|
||||||
|
COMPATIBLE_HOST_linux-gnux32 = "null"
|
||||||
|
|
||||||
|
RDEPENDS_${PN} += "pciutils python3-core"
|
||||||
|
RDEPENDS_${PN}-examples += "bash"
|
||||||
|
DEPENDS = "numactl"
|
||||||
|
|
||||||
|
inherit meson
|
||||||
|
|
||||||
|
INSTALL_PATH = "${prefix}/share/dpdk"
|
||||||
|
|
||||||
|
do_install_append(){
|
||||||
|
# remove source files
|
||||||
|
rm -rf ${D}/${INSTALL_PATH}/examples/*
|
||||||
|
|
||||||
|
# Install examples
|
||||||
|
install -m 0755 -d ${D}/${INSTALL_PATH}/examples/
|
||||||
|
for dirname in ${B}/examples/dpdk-*
|
||||||
|
do
|
||||||
|
if [ ! -d ${dirname} ] && [ -x ${dirname} ]; then
|
||||||
|
install -m 0755 ${dirname} ${D}/${INSTALL_PATH}/examples/
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
PACKAGES =+ "${PN}-examples ${PN}-tools"
|
||||||
|
|
||||||
|
FILES_${PN} = " ${bindir}/dpdk-testpmd \
|
||||||
|
${bindir}/dpdk-proc-info \
|
||||||
|
${libdir}/*.so* \
|
||||||
|
${libdir}/dpdk/pmds-21.0/*.so* \
|
||||||
|
"
|
||||||
|
FILES_${PN}-examples = " \
|
||||||
|
${prefix}/share/dpdk/examples/* \
|
||||||
|
"
|
||||||
|
|
||||||
|
FILES_${PN}-tools = " \
|
||||||
|
${bindir}/dpdk-pdump \
|
||||||
|
${bindir}/dpdk-test \
|
||||||
|
${bindir}/dpdk-test-* \
|
||||||
|
${bindir}/dpdk-*.py \
|
||||||
|
"
|
||||||
|
|
||||||
|
CVE_PRODUCT = "data_plane_development_kit"
|
||||||
|
|
||||||
|
INSANE_SKIP_${PN} = "dev-so"
|
Loading…
Reference in New Issue
Block a user