From ac05388b628aa2d7bec996438eb786b2cd57f451 Mon Sep 17 00:00:00 2001 From: Matteo Croce Date: Wed, 10 Mar 2021 03:48:24 +0100 Subject: [PATCH] libbpf: use pkg-config The libbpf makefile uses pkg-config to get the libelf build flags and file paths. Inherit pkgconfig so the install target can copy the binaries in the sysroot, which are needed by other packages, like bcc. Signed-off-by: Matteo Croce Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/libbpf/libbpf_0.3.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-oe/recipes-kernel/libbpf/libbpf_0.3.bb b/meta-oe/recipes-kernel/libbpf/libbpf_0.3.bb index 5714ddb612..8b548d0b58 100644 --- a/meta-oe/recipes-kernel/libbpf/libbpf_0.3.bb +++ b/meta-oe/recipes-kernel/libbpf/libbpf_0.3.bb @@ -23,6 +23,8 @@ S = "${WORKDIR}/git/src" EXTRA_OEMAKE += "DESTDIR=${D} LIBDIR=${libdir}" +inherit pkgconfig + do_compile() { if grep -q "CONFIG_BPF_SYSCALL=y" ${STAGING_KERNEL_BUILDDIR}/.config then @@ -40,5 +42,3 @@ do_install() { bbnote "no files to install" fi } - -BBCLASSEXTEND = "native"