2018-11-29 11:27:38 -05:00
|
|
|
SUMMARY = "Tools to manipulate UEFI variables"
|
|
|
|
DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
|
2020-07-08 10:42:25 -04:00
|
|
|
HOMEPAGE = "https://github.com/rhboot/efivar"
|
2018-11-29 11:27:38 -05:00
|
|
|
|
2020-07-08 10:42:25 -04:00
|
|
|
LICENSE = "LGPLv2.1+"
|
2018-11-29 11:27:38 -05:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
|
|
|
|
|
2018-12-13 06:38:35 -05:00
|
|
|
COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
|
2018-11-29 11:27:38 -05:00
|
|
|
|
2018-12-13 06:38:35 -05:00
|
|
|
SRC_URI = "git://github.com/rhinstaller/efivar.git \
|
2020-07-08 10:42:25 -04:00
|
|
|
file://no-werror.patch"
|
|
|
|
SRCREV = "c1d6b10e1ed4ba2be07f385eae5bceb694478a10"
|
2018-12-13 06:38:35 -05:00
|
|
|
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
2020-07-08 10:42:25 -04:00
|
|
|
inherit pkgconfig
|
2018-11-29 11:27:38 -05:00
|
|
|
|
2020-07-08 10:42:25 -04:00
|
|
|
export CCLD_FOR_BUILD = "${BUILD_CCLD}"
|
|
|
|
|
|
|
|
# Upstream uses --add-needed in gcc.specs which gold doesn't support, so
|
|
|
|
# enforce BFD.
|
|
|
|
LDFLAGS += "-fuse-ld=bfd"
|
|
|
|
|
|
|
|
do_compile_prepend() {
|
|
|
|
# Remove when https://github.com/rhboot/efivar/issues/130 is fixed
|
|
|
|
oe_runmake \
|
|
|
|
CFLAGS="${BUILD_CFLAGS}" \
|
|
|
|
LDFLAGS="${BUILD_LDFLAGS}" \
|
|
|
|
-C src makeguids
|
2018-11-29 11:27:38 -05:00
|
|
|
}
|
|
|
|
|
2018-12-13 06:38:35 -05:00
|
|
|
do_install() {
|
|
|
|
oe_runmake install DESTDIR=${D}
|
|
|
|
}
|
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|
2020-07-08 10:42:25 -04:00
|
|
|
|
|
|
|
RRECOMMENDS_${PN}_class-target = "kernel-module-efivarfs"
|
|
|
|
|
|
|
|
CLEANBROKEN = "1"
|