1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-21 22:46:19 +00:00
Lakka-LibreELEC/packages/devel/libbpf/package.mk
2023-01-01 06:45:31 +00:00

25 lines
717 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="libbpf"
PKG_VERSION="1.1.0"
PKG_SHA256="5da826c968fdb8a2f714701cfef7a4b7078be030cf58b56143b245816301cbb8"
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
}