diff options
Diffstat (limited to 'recipes-extended/dpdk/dpdk_23.11.bb')
-rw-r--r-- | recipes-extended/dpdk/dpdk_23.11.bb | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/recipes-extended/dpdk/dpdk_23.11.bb b/recipes-extended/dpdk/dpdk_23.11.bb new file mode 100644 index 0000000..5f0f9ec --- /dev/null +++ b/recipes-extended/dpdk/dpdk_23.11.bb | |||
@@ -0,0 +1,68 @@ | |||
1 | include dpdk.inc | ||
2 | |||
3 | SRC_URI += " file://0001-config-meson-get-cpu_instruction_set-from-meson-opti.patch " | ||
4 | |||
5 | STABLE = "-stable" | ||
6 | BRANCH = "23.11" | ||
7 | SRCREV = "eeb0605f118dae66e80faa44f7b3e88748032353" | ||
8 | S = "${WORKDIR}/git" | ||
9 | |||
10 | def get_cpu_instruction_set(bb, d): | ||
11 | import re | ||
12 | march = re.search(r'-march=([^\s]*)', d.getVar('CC')).group(1) | ||
13 | return march | ||
14 | |||
15 | EXTRA_OEMESON = " -Dexamples=all -Dcpu_instruction_set=${@get_cpu_instruction_set(bb, d)} " | ||
16 | |||
17 | COMPATIBLE_MACHINE = "null" | ||
18 | COMPATIBLE_HOST:libc-musl:class-target = "null" | ||
19 | COMPATIBLE_HOST:linux-gnux32 = "null" | ||
20 | |||
21 | PACKAGECONFIG ??= " " | ||
22 | PACKAGECONFIG[afxdp] = ",,libbpf xdp-tools" | ||
23 | PACKAGECONFIG[libvirt] = ",,libvirt" | ||
24 | |||
25 | RDEPENDS:${PN} += "pciutils python3-core" | ||
26 | RDEPENDS:${PN}-examples += "bash" | ||
27 | DEPENDS = "numactl python3-pyelftools-native" | ||
28 | |||
29 | inherit meson pkgconfig | ||
30 | |||
31 | INSTALL_PATH = "${prefix}/share/dpdk" | ||
32 | |||
33 | do_install:append(){ | ||
34 | # remove source files | ||
35 | rm -rf ${D}/${INSTALL_PATH}/examples/* | ||
36 | |||
37 | # Install examples | ||
38 | install -m 0755 -d ${D}/${INSTALL_PATH}/examples/ | ||
39 | for dirname in ${B}/examples/dpdk-* | ||
40 | do | ||
41 | if [ ! -d ${dirname} ] && [ -x ${dirname} ]; then | ||
42 | install -m 0755 ${dirname} ${D}/${INSTALL_PATH}/examples/ | ||
43 | fi | ||
44 | done | ||
45 | |||
46 | } | ||
47 | |||
48 | PACKAGES =+ "${PN}-examples ${PN}-tools" | ||
49 | |||
50 | FILES:${PN} += " ${bindir}/dpdk-testpmd \ | ||
51 | ${bindir}/dpdk-proc-info \ | ||
52 | ${libdir}/*.so* \ | ||
53 | ${libdir}/dpdk/pmds-22.0/*.so* \ | ||
54 | " | ||
55 | FILES:${PN}-examples = " \ | ||
56 | ${prefix}/share/dpdk/examples/* \ | ||
57 | " | ||
58 | |||
59 | FILES:${PN}-tools = " \ | ||
60 | ${bindir}/dpdk-pdump \ | ||
61 | ${bindir}/dpdk-test \ | ||
62 | ${bindir}/dpdk-test-* \ | ||
63 | ${bindir}/dpdk-*.py \ | ||
64 | " | ||
65 | |||
66 | CVE_PRODUCT = "data_plane_development_kit" | ||
67 | |||
68 | INSANE_SKIP:${PN} = "dev-so" | ||