summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/efivar/efivar_0.31.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/efivar/efivar_0.31.bb')
-rw-r--r--meta-oe/recipes-extended/efivar/efivar_0.31.bb45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/efivar/efivar_0.31.bb b/meta-oe/recipes-extended/efivar/efivar_0.31.bb
new file mode 100644
index 0000000000..10dde896ee
--- /dev/null
+++ b/meta-oe/recipes-extended/efivar/efivar_0.31.bb
@@ -0,0 +1,45 @@
1SUMMARY = "Tools to manipulate UEFI variables"
2DESCRIPTION = "efivar provides a simple command line interface to the UEFI variable facility"
3HOMEPAGE = "https://github.com/rhinstaller/efivar"
4
5LICENSE = "LGPLv2.1"
6LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
7
8DEPENDS = "popt"
9DEPENDS_append_class-target = " efivar-native"
10
11inherit pkgconfig
12
13COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
14
15SRCREV = "11324799c68193116e1dd5f94b416591bd324f90"
16SRC_URI = "git://github.com/rhinstaller/efivar.git \
17 file://allow-multi-definitions-for-native.patch \
18 file://0001-makeguids-Do-not-use-__bswap_constant_-16-32-macros.patch \
19 file://musl-strndupa.patch \
20 "
21SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch \
22 file://0003-efivar-fix-for-cross-compile.patch \
23 ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'file://0004-fix-unknow-option-for-gold-linker.patch', '', d)} \
24 "
25SRC_URI_append_class-native = " file://fix-compile-failure-with-host-gcc-4.6.patch \
26 "
27
28S = "${WORKDIR}/git"
29
30# Setting CROSS_COMPILE breaks pkgconfig, so just set AR
31EXTRA_OEMAKE = "AR=${TARGET_PREFIX}gcc-ar"
32
33do_compile_prepend() {
34 sed -i -e s:-Werror::g ${S}/gcc.specs
35}
36
37do_install() {
38 oe_runmake install DESTDIR=${D}
39}
40
41do_install_append_class-native() {
42 install -D -m 0755 ${B}/src/makeguids ${D}${bindir}/makeguids
43}
44
45BBCLASSEXTEND = "native"