blob: 9b8ca07fe7660e665cf60973d2c34540da7348c6 [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
Patrick Williamsda295312023-12-05 16:48:56 -060011SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https;branch=master"
12SRCREV = "20c0a9e3d7e7d4aeb283eae982543c9cacc29477"
Patrick Williamsac13d5f2023-11-24 18:59:46 -060013
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"