24 lines
717 B
Makefile
24 lines
717 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libbpf"
|
|
PKG_VERSION="0.8.1"
|
|
PKG_SHA256="7bda8187efc619d1eb20a1ba5ab949dd68d40dd44945310c91ac0f915fa4a42b"
|
|
PKG_LICENSE="LGPL-2.1"
|
|
PKG_SITE="https://github.com/libbpf/libbpf"
|
|
PKG_URL="https://github.com/libbpf/libbpf/archive/refs/tags/v${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain elfutils"
|
|
PKG_LONGDESC="libbpf supports building BPF CO-RE-enabled applications"
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
make_target() {
|
|
make BUILD_STATIC_ONLY=1 \
|
|
PREFIX=${SYSROOT_PREFIX}/usr \
|
|
-C src
|
|
}
|
|
|
|
makeinstall_target() {
|
|
make BUILD_STATIC_ONLY=1 \
|
|
PREFIX=${SYSROOT_PREFIX}/usr \
|
|
-C src install
|
|
}
|