mirror of
git://git.yoctoproject.org/meta-dpdk.git
synced 2025-07-19 12:59:03 +02:00

The generated pkg-config libdpdk.pc file has the output with full path of librt such as <builddir>/recipe-sysroot/usr/lib/librt.so instead of -lrt. This will cause an issue when compile DPDK app with static library as the librt is not found with the hardcode path in the libdpdk.pc file. Signed-off-by: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
70 lines
1.6 KiB
BlitzBasic
70 lines
1.6 KiB
BlitzBasic
include dpdk.inc
|
|
|
|
SRC_URI += " \
|
|
file://0001-meson.build-march-and-mcpu-already-passed-by-Yocto.patch \
|
|
file://0001-ifpga-meson-Fix-finding-librt-using-find_library.patch \
|
|
"
|
|
|
|
STABLE = "-stable"
|
|
BRANCH = "20.11"
|
|
SRCREV = "b1e71cf43153cca07db6cbb69fdca030ccf52234"
|
|
S = "${WORKDIR}/git"
|
|
|
|
# kernel module is provide by dpdk-module recipe, so disable here
|
|
EXTRA_OEMESON = " -Denable_kmods=false \
|
|
-Dexamples=all \
|
|
"
|
|
|
|
COMPATIBLE_MACHINE = "null"
|
|
COMPATIBLE_HOST_libc-musl_class-target = "null"
|
|
COMPATIBLE_HOST_linux-gnux32 = "null"
|
|
|
|
PACKAGECONFIG ??= " "
|
|
PACKAGECONFIG[afxdp] = ",,libbpf"
|
|
PACKAGECONFIG[libvirt] = ",,libvirt"
|
|
|
|
RDEPENDS_${PN} += "pciutils python3-core"
|
|
RDEPENDS_${PN}-examples += "bash"
|
|
DEPENDS = "numactl"
|
|
|
|
inherit meson
|
|
|
|
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-21.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"
|