summaryrefslogtreecommitdiffstats
path: root/recipes-extended/dpdk/dpdk_22.11.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/dpdk/dpdk_22.11.bb')
-rw-r--r--recipes-extended/dpdk/dpdk_22.11.bb49
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes-extended/dpdk/dpdk_22.11.bb b/recipes-extended/dpdk/dpdk_22.11.bb
new file mode 100644
index 000000000..84bda4770
--- /dev/null
+++ b/recipes-extended/dpdk/dpdk_22.11.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "Data Plane Development Kit"
2HOMEPAGE = "http://dpdk.org"
3LICENSE = "BSD-3-Clause & LGPL-2.1-only & GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://license/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
5 file://license/lgpl-2.1.txt;md5=4b54a1fd55a448865a0b32d41598759d \
6 file://license/bsd-3-clause.txt;md5=0f00d99239d922ffd13cabef83b33444"
7
8DEPENDS = "python3-pyelftools-native"
9
10DPDK_SRC ?= "git://github.com/nxp-qoriq/dpdk;protocol=https"
11SRC_URI = "${DPDK_SRC};nobranch=1 \
12 file://0001-meson.build-march-and-mcpu-already-passed-by-Yocto.patch"
13SRCREV = "e09ece7ebcda131ee3d5a45999ad3396ee2092ae"
14
15inherit meson pkgconfig
16
17PACKAGECONFIG ??= "openssl examples"
18
19PACKAGECONFIG[afxdp] = ",,libbpf"
20PACKAGECONFIG[examples] = "-Denable_examples_bin_install=true -Dexamples=${DPDK_EXAMPLES},-Denable_examples_bin_install=false"
21PACKAGECONFIG[libvirt] = ",,libvirt"
22PACKAGECONFIG[openssl] = ",,openssl"
23
24DPDK_EXAMPLES ?= "l2fwd,l3fwd,l2fwd-crypto,ipsec-secgw,ip_fragmentation,ip_reassembly,qdma_demo,timer,multi_process/simple_mp"
25DPDK_APPS ?= "pdump,test-pmd,proc-info,test-crypto-perf"
26
27# kernel module is provide by dpdk-module recipe, so disable here
28EXTRA_OEMESON = " \
29 -Denable_kmods=false \
30 -Doptimization=3 \
31 --cross-file ${S}/config/arm/arm64_poky_linux_gcc \
32 -Denable_driver_sdk=true \
33 ${@bb.utils.contains('DISTRO_FEATURES', 'vpp', '-Dc_args="-Ofast -fPIC -ftls-model=local-dynamic"', '', d)} \
34 -Denable_examples_source_install=false \
35 -Denable_apps=${DPDK_APPS} \
36"
37
38do_install:append(){
39 install -d ${D}/${sysconfdir}/dpdk
40 cp -rf ${S}/nxp/* ${D}/${sysconfdir}/dpdk
41}
42
43INSANE_SKIP:${PN} = "dev-so"
44
45RDEPENDS:${PN} += "bash pciutils python3-core python3-pyelftools"
46
47COMPATIBLE_MACHINE = "(qoriq-arm64)"
48
49CVE_PRODUCT = "data_plane_development_kit"