1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-25 18:56:18 +00:00
Lakka-LibreELEC/packages/addons/addon-depends/system-tools-depends/efibootmgr/package.mk
2022-11-19 04:48:53 +00:00

28 lines
957 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="efibootmgr"
PKG_VERSION="18"
PKG_SHA256="442867d12f8525034a404fc8af3036dba8e1fc970998af2486c3b940dfad0874"
PKG_ARCH="x86_64"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/rhboot/efibootmgr"
PKG_URL="https://github.com/rhboot/efibootmgr/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain efivar pciutils zlib"
PKG_LONGDESC="Tool to modify UEFI Firmware Boot Manager Variables."
PKG_BUILD_FLAGS="-sysroot"
make_target() {
export CFLAGS="${CFLAGS} -I${SYSROOT_PREFIX}/usr/include -I${SYSROOT_PREFIX}/usr/include/efivar -fgnu89-inline -Wno-pointer-sign"
export LDFLAGS="${LDFLAGS} -L${SYSROOT_PREFIX}/usr/lib -ludev -ldl"
make EFIDIR=BOOT EFI_LOADER=bootx64.efi PKG_CONFIG=true \
LDLIBS="-lefiboot -lefivar" \
efibootmgr
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp -p src/efibootmgr ${INSTALL}/usr/bin
}