blob: a8e1e5c0cbfe3791ea8a74fd424bcb10ac5932a7 [file] [log] [blame]
William A. Kennington III49e95662021-09-15 16:19:36 -07001SUMMARY = "Library for BPF handling"
2DESCRIPTION = "Library for BPF handling"
3HOMEPAGE = "https://github.com/libbpf/libbpf"
4SECTION = "libs"
Andrew Geissler9aee5002022-03-30 16:27:02 +00005LICENSE = "LGPL-2.1-or-later"
William A. Kennington III49e95662021-09-15 16:19:36 -07006
7LIC_FILES_CHKSUM = "file://../LICENSE.LGPL-2.1;md5=b370887980db5dd40659b50909238dbd"
8
9DEPENDS = "zlib elfutils"
10
Andrew Geissler595f6302022-01-24 19:11:47 +000011SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https;branch=master"
Andrew Geissler3eeda902023-05-19 10:14:02 -050012SRCREV = "fbd60dbff51c870f5e80a17c4f2fd639eb80af90"
William A. Kennington III49e95662021-09-15 16:19:36 -070013
14PACKAGE_ARCH = "${MACHINE_ARCH}"
Andrew Geissler20137392023-10-12 04:59:14 -060015COMPATIBLE_HOST = "(x86_64|i.86|arm|aarch64|riscv64|powerpc|powerpc64|mips64).*-linux"
William A. Kennington III49e95662021-09-15 16:19:36 -070016
17S = "${WORKDIR}/git/src"
18
19EXTRA_OEMAKE += "DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
Patrick Williamse760df82023-05-26 11:10:49 -050020EXTRA_OEMAKE:append:class-native = " UAPIDIR=${includedir}"
William A. Kennington III49e95662021-09-15 16:19:36 -070021
22inherit pkgconfig
23
24do_compile() {
25 oe_runmake
26}
27
28do_install() {
29 oe_runmake install
30}
Andrew Geissler517393d2023-01-13 08:55:19 -060031
Patrick Williamse760df82023-05-26 11:10:49 -050032do_install:append:class-native() {
33 oe_runmake install_uapi_headers
34}
35
Andrew Geissler517393d2023-01-13 08:55:19 -060036BBCLASSEXTEND = "native nativesdk"