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