From bc701e378ceada37caf328c8d50abebbf7cf7246 Mon Sep 17 00:00:00 2001 From: Mun Chun Yep Date: Sat, 18 May 2024 19:21:00 +0800 Subject: dpdk: update 23.11 -> 23.11.1 Signed-off-by: Mun Chun Yep Signed-off-by: Anuj Mittal --- recipes-extended/dpdk/dpdk_23.11.1.bb | 71 +++++++++++++++++++++++++++++++++++ recipes-extended/dpdk/dpdk_23.11.bb | 71 ----------------------------------- 2 files changed, 71 insertions(+), 71 deletions(-) create mode 100644 recipes-extended/dpdk/dpdk_23.11.1.bb delete mode 100644 recipes-extended/dpdk/dpdk_23.11.bb diff --git a/recipes-extended/dpdk/dpdk_23.11.1.bb b/recipes-extended/dpdk/dpdk_23.11.1.bb new file mode 100644 index 0000000..e7a0a23 --- /dev/null +++ b/recipes-extended/dpdk/dpdk_23.11.1.bb @@ -0,0 +1,71 @@ +include dpdk.inc + +SRC_URI += " file://0001-config-meson-get-cpu_instruction_set-from-meson-opti.patch " + +STABLE = "-stable" +BRANCH = "23.11" +SRCREV = "a6ec5765cf83d3d58cbd6d4ed5b92b4a06f8a808" +S = "${WORKDIR}/git" + +def get_cpu_instruction_set(bb, d): + import re + march = re.search(r'-march=([^\s]*)', d.getVar('CC')) + if march: + return march.group(1) + else: + return "core2" + +EXTRA_OEMESON = " -Dexamples=all -Dcpu_instruction_set=${@get_cpu_instruction_set(bb, d)} " + +COMPATIBLE_MACHINE = "null" +COMPATIBLE_HOST:libc-musl:class-target = "null" +COMPATIBLE_HOST:linux-gnux32 = "null" + +PACKAGECONFIG ??= " " +PACKAGECONFIG[afxdp] = ",,libbpf xdp-tools" +PACKAGECONFIG[libvirt] = ",,libvirt" + +RDEPENDS:${PN} += "pciutils python3-core" +RDEPENDS:${PN}-examples += "bash" +DEPENDS = "numactl python3-pyelftools-native" + +inherit meson pkgconfig + +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-24.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" diff --git a/recipes-extended/dpdk/dpdk_23.11.bb b/recipes-extended/dpdk/dpdk_23.11.bb deleted file mode 100644 index fc2796a..0000000 --- a/recipes-extended/dpdk/dpdk_23.11.bb +++ /dev/null @@ -1,71 +0,0 @@ -include dpdk.inc - -SRC_URI += " file://0001-config-meson-get-cpu_instruction_set-from-meson-opti.patch " - -STABLE = "-stable" -BRANCH = "23.11" -SRCREV = "eeb0605f118dae66e80faa44f7b3e88748032353" -S = "${WORKDIR}/git" - -def get_cpu_instruction_set(bb, d): - import re - march = re.search(r'-march=([^\s]*)', d.getVar('CC')) - if march: - return march.group(1) - else: - return "core2" - -EXTRA_OEMESON = " -Dexamples=all -Dcpu_instruction_set=${@get_cpu_instruction_set(bb, d)} " - -COMPATIBLE_MACHINE = "null" -COMPATIBLE_HOST:libc-musl:class-target = "null" -COMPATIBLE_HOST:linux-gnux32 = "null" - -PACKAGECONFIG ??= " " -PACKAGECONFIG[afxdp] = ",,libbpf xdp-tools" -PACKAGECONFIG[libvirt] = ",,libvirt" - -RDEPENDS:${PN} += "pciutils python3-core" -RDEPENDS:${PN}-examples += "bash" -DEPENDS = "numactl python3-pyelftools-native" - -inherit meson pkgconfig - -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-22.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" -- cgit v1.2.3-54-g00ecf