Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libbpf: remove kernel configuration dependency #430

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions meta-oe/recipes-kernel/libbpf/libbpf_0.4.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ LIC_FILES_CHKSUM = "file://../LICENSE.LGPL-2.1;md5=b370887980db5dd40659b50909238

DEPENDS = "zlib elfutils"

do_compile[depends] += "virtual/kernel:do_shared_workdir"

SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https"
SRCREV = "db9614b6bd69746809d506c2786f914b0f812c37"

Expand All @@ -23,19 +21,9 @@ EXTRA_OEMAKE += "DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
inherit pkgconfig

do_compile() {
if grep -q "CONFIG_BPF_SYSCALL=y" ${STAGING_KERNEL_BUILDDIR}/.config
then
oe_runmake
else
bbnote "BFP syscall is not enabled"
fi
oe_runmake
}

do_install() {
if grep -q "CONFIG_BPF_SYSCALL=y" ${STAGING_KERNEL_BUILDDIR}/.config
then
oe_runmake install
else
bbnote "no files to install"
fi
oe_runmake install
}