Files
meta-openembedded/meta-oe/recipes-kernel/libbpf/libbpf_1.2.0.bb
T
Denys Zagorui 35e7d49014 libbpf: add arm, powerpc and mips64 to COMPATIBLE_HOST
There is is no build time issues with libbpf for these
architectures so we can add them to COMPATIBLE_HOST

Signed-off-by: Denys Zagorui <dzagorui@cisco.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit bb8049afe9)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-10-12 09:58:06 -04:00

37 lines
888 B
BlitzBasic

SUMMARY = "Library for BPF handling"
DESCRIPTION = "Library for BPF handling"
HOMEPAGE = "https://github.com/libbpf/libbpf"
SECTION = "libs"
LICENSE = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "file://../LICENSE.LGPL-2.1;md5=b370887980db5dd40659b50909238dbd"
DEPENDS = "zlib elfutils"
SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https;branch=master"
SRCREV = "fbd60dbff51c870f5e80a17c4f2fd639eb80af90"
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_HOST = "(x86_64|i.86|arm|aarch64|riscv64|powerpc|powerpc64|mips64).*-linux"
S = "${WORKDIR}/git/src"
EXTRA_OEMAKE += "DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
EXTRA_OEMAKE:append:class-native = " UAPIDIR=${includedir}"
inherit pkgconfig
do_compile() {
oe_runmake
}
do_install() {
oe_runmake install
}
do_install:append:class-native() {
oe_runmake install_uapi_headers
}
BBCLASSEXTEND = "native nativesdk"