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