aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/pktgen-dpdk/pktgen-dpdk_21.05.0.bb
blob: f04e1e9f5a2bf1b6cdc7577da079121bd5c98de9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
DESCRIPTION = "PKTGEN DPDK"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0245ceedaef59ae0129500b0ce1e8a45"

DEPENDS += "libpcap dpdk lua lua-native"

SRC_URI = "git://dpdk.org/git/apps/pktgen-dpdk;protocol=https;nobranch=1 \
    file://fix-gcc11-mismatched-dealloc-error.patch \
"
SRCREV = "3a09aa916597fb9a97ee8eec50044cbdb9c4abde"

S = "${WORKDIR}/git"

DPAA_VER ?= "dpaa"
export RTE_TARGET = "arm64-${DPAA_VER}-linuxapp-gcc"
export RTE_SDK = "${RECIPE_SYSROOT}/usr/share/dpdk"

inherit meson pkgconfig

MESON_BUILDTYPE = "release"
EXTRA_OEMESON += '-Dc_args="-DRTE_FORCE_INTRINSICS"'

do_configure:prepend() {
    sed -i "/^add_project_arguments('-march=native'/s/^/#&/" ${S}/meson.build
}

do_install() {
	install -d ${D}${bindir}/
	install -m 0755 app/pktgen ${D}${bindir}/
        install -m 0644 ${S}/Pktgen.lua ${D}${bindir}/
}

INSANE_SKIP:${PN} = "ldflags"
INHIBIT_PACKAGE_STRIP = "1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
PARALLEL_MAKE = ""
COMPATIBLE_MACHINE = "(qoriq-arm64)"