mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-12-15 06:55:55 +01:00
mtcp-dpdk: Update mtcp-dpdk_22.11.bb to commit 3ba347b
[YOCIMX-8363] Enable mtcp on i.MX 95 platform Signed-off-by: Zelan Zou <zelan.zou@nxp.com> Signed-off-by: Jun Zhu <junzhu@nxp.com>
This commit is contained in:
parent
66982f4f11
commit
6bc9d43e49
44
meta-imx-sdk/recipes-extended/dpdk/mtcp-dpdk_22.11.bb
Normal file
44
meta-imx-sdk/recipes-extended/dpdk/mtcp-dpdk_22.11.bb
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
DESCRIPTION = "mTCP on DPDK"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=189d0d4d51a8c303a7188b0932b735a9"
|
||||
|
||||
DEPENDS += "gmp numactl dpdk bc-native"
|
||||
|
||||
SRC_URI = "${MTCP_DPDK_SRC};nobranch=1"
|
||||
MTCP_DPDK_SRC ?= "git://github.com/nxp-mcuxpresso/mtcp;protocol=https"
|
||||
|
||||
SRCREV = "3ba347ba8fae3a7cc52220d50c221af4c26d170b"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
export RTE_SDK = "${RECIPE_SYSROOT}/usr"
|
||||
EXTRA_OECONF += "--with-dpdk-lib=$RTE_SDK"
|
||||
B = "${S}"
|
||||
|
||||
do_configure() {
|
||||
export SYSROOT_DPDK=${PKG_CONFIG_SYSROOT_DIR}
|
||||
${S}/configure --host aarch64-fsl-linux --with-dpdk-lib=${SYSROOT_DPDK}/usr
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
make setup-dpdk
|
||||
make
|
||||
make -C apps/perf
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}/mtcp
|
||||
install -m 0755 ${S}/apps/perf/client ${D}${bindir}/mtcp
|
||||
install -m 0755 ${S}/apps/example/epserver ${D}${bindir}/mtcp
|
||||
install -m 0755 ${S}/apps/example/epwget ${D}${bindir}/mtcp
|
||||
install -m 0644 ${S}/apps/example/epserver.conf ${D}${bindir}/mtcp
|
||||
install -m 0644 ${S}/apps/example/epwget.conf ${D}${bindir}/mtcp
|
||||
install -m 0644 ${S}/apps/perf/client.conf ${D}${bindir}/mtcp
|
||||
install -m 0644 ${S}/config/sample_route.conf ${D}${bindir}/mtcp
|
||||
install -m 0644 ${S}/config/sample_arp.conf ${D}${bindir}/mtcp
|
||||
install -m 0644 ${S}/README_nxp ${D}${bindir}/mtcp
|
||||
}
|
||||
|
||||
COMPATIBLE_MACHINE = "(mx95-nxp-bsp)"
|
||||
Loading…
Reference in New Issue
Block a user