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"
|
|
|
|
HOMEPAGE = "https://github.com/rhinstaller/efivar"
|
|
|
|
|
|
|
|
LICENSE = "LGPLv2.1"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
|
|
|
|
|
2018-12-13 06:38:35 -05:00
|
|
|
DEPENDS = "popt"
|
|
|
|
DEPENDS_append_class-target = " efivar-native"
|
2018-11-29 11:27:38 -05:00
|
|
|
|
2018-12-13 06:38:35 -05:00
|
|
|
inherit pkgconfig
|
2018-11-29 11:27:38 -05:00
|
|
|
|
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
|
|
|
|
2019-01-15 12:34:27 -05:00
|
|
|
SRCREV = "c1d6b10e1ed4ba2be07f385eae5bceb694478a10"
|
2018-12-13 06:38:35 -05:00
|
|
|
SRC_URI = "git://github.com/rhinstaller/efivar.git \
|
|
|
|
file://allow-multi-definitions-for-native.patch \
|
|
|
|
"
|
|
|
|
SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch \
|
|
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'file://0004-fix-unknow-option-for-gold-linker.patch', '', d)} \
|
|
|
|
"
|
|
|
|
SRC_URI_append_class-native = " file://fix-compile-failure-with-host-gcc-4.6.patch \
|
|
|
|
"
|
|
|
|
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
|
|
|
do_compile_prepend() {
|
|
|
|
sed -i -e s:-Werror::g ${S}/gcc.specs
|
2018-11-29 11:27:38 -05:00
|
|
|
}
|
|
|
|
|
2018-12-13 06:38:35 -05:00
|
|
|
do_compile_class-native() {
|
|
|
|
oe_runmake -C src makeguids CC_FOR_BUILD="${BUILD_CC}"
|
2018-11-29 11:27:38 -05:00
|
|
|
}
|
|
|
|
|
2018-12-13 06:38:35 -05:00
|
|
|
do_install() {
|
|
|
|
oe_runmake install DESTDIR=${D}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install_class-native() {
|
|
|
|
install -D -m 0755 ${B}/src/makeguids ${D}${bindir}/makeguids
|
|
|
|
}
|
2018-11-29 11:27:38 -05:00
|
|
|
|
2018-12-13 06:38:35 -05:00
|
|
|
BBCLASSEXTEND = "native"
|