blob: 8dbf7933bba8dfa1589a872ab156619eaee1d1a4 [file] [log] [blame]
Patrick Williamsac13d5f2023-11-24 18:59:46 -06001SUMMARY = "Library for BPF handling"
2DESCRIPTION = "Library for BPF handling"
3HOMEPAGE = "https://github.com/libbpf/libbpf"
4SECTION = "libs"
5LICENSE = "LGPL-2.1-or-later"
6
7LIC_FILES_CHKSUM = "file://../LICENSE.LGPL-2.1;md5=b370887980db5dd40659b50909238dbd"
8
9DEPENDS = "zlib elfutils"
10
11SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https;branch=libbpf-v1.2.2-bugfix"
12SRCREV = "1728e3e4bef0e138ea95ffe62163eb9a6ac6fa32"
13
14PACKAGE_ARCH = "${MACHINE_ARCH}"
15COMPATIBLE_HOST = "(x86_64|i.86|arm|aarch64|riscv64|powerpc|powerpc64|mips64).*-linux"
16
17S = "${WORKDIR}/git/src"
18
19EXTRA_OEMAKE += "DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
20EXTRA_OEMAKE:append:class-native = " UAPIDIR=${includedir}"
21
22inherit pkgconfig
23
24do_compile() {
25 oe_runmake
26}
27
28do_install() {
29 oe_runmake install
30}
31
32do_install:append:class-native() {
33 oe_runmake install_uapi_headers
34}
35
36BBCLASSEXTEND = "native nativesdk"