2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="efibootmgr"
|
2023-11-13 22:18:49 +00:00
|
|
|
PKG_VERSION="4a8d9c6"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_ARCH="x86_64"
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://github.com/rhboot/efibootmgr"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="https://github.com/rhboot/efibootmgr/archive/${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain efivar pciutils zlib"
|
|
|
|
PKG_LONGDESC="Tool to modify UEFI Firmware Boot Manager Variables."
|
|
|
|
|
|
|
|
make_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
export CFLAGS="${CFLAGS} -I${SYSROOT_PREFIX}/usr/include -I${SYSROOT_PREFIX}/usr/include/efivar -fgnu89-inline"
|
|
|
|
export LDFLAGS="${LDFLAGS} -L${SYSROOT_PREFIX}/usr/lib -ludev -ldl"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
make EFIDIR=BOOT EFI_LOADER=bootx64.efi PKG_CONFIG=true \
|
|
|
|
LDLIBS="-lefiboot -lefivar" \
|
|
|
|
efibootmgr
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
: # nop
|
|
|
|
}
|