blob: c4254c70d91388f07f826a410da1dcd64b3b9482 [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001SUMMARY = "Tools to manipulate UEFI variables"
2DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
3HOMEPAGE = "https://github.com/rhboot/efivar"
4
5LICENSE = "LGPLv2.1+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
7
8COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
9
10SRC_URI = "git://github.com/rhinstaller/efivar.git \
11 file://no-werror.patch"
12SRCREV = "c1d6b10e1ed4ba2be07f385eae5bceb694478a10"
13
14S = "${WORKDIR}/git"
15
16inherit pkgconfig
17
18export CCLD_FOR_BUILD = "${BUILD_CCLD}"
19
20# Upstream uses --add-needed in gcc.specs which gold doesn't support, so
21# enforce BFD.
22LDFLAGS += "-fuse-ld=bfd"
23
24do_compile_prepend() {
25 # Remove when https://github.com/rhboot/efivar/issues/130 is fixed
26 oe_runmake CFLAGS="${BUILD_CFLAGS}" -C src makeguids
27}
28
29do_install() {
30 oe_runmake install DESTDIR=${D}
31}
32
33BBCLASSEXTEND = "native"
34
35RRECOMMENDS_${PN}_class-target = "kernel-module-efivarfs"
36
37CLEANBROKEN = "1"