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="efivar"
|
2023-11-13 22:18:49 +00:00
|
|
|
PKG_VERSION="90e88b221e8bc60dc50f3246051369b8f580c0d0"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_ARCH="x86_64"
|
|
|
|
PKG_LICENSE="LGPL"
|
|
|
|
PKG_SITE="https://github.com/rhboot/efivar"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="https://github.com/rhboot/efivar/archive/${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_HOST="gcc:host"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain efivar:host"
|
|
|
|
PKG_LONGDESC="Tools and library to manipulate EFI variables."
|
|
|
|
|
|
|
|
make_host() {
|
|
|
|
make -C src/ include/efivar/efivar-guids.h
|
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
make -C src/ libefivar.a libefiboot.a efivar.h efivar
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_host() {
|
|
|
|
: # noop
|
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib
|
|
|
|
cp -P src/libefivar.a src/libefiboot.a ${SYSROOT_PREFIX}/usr/lib/
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/include/efivar
|
|
|
|
cp -P src/include/efivar/*.h ${SYSROOT_PREFIX}/usr/include/efivar
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|