diff options
Diffstat (limited to 'meta-oe/recipes-extended/efivar/efivar_0.31.bb')
| -rw-r--r-- | meta-oe/recipes-extended/efivar/efivar_0.31.bb | 45 |
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 @@ | |||
| 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/rhinstaller/efivar" | ||
| 4 | |||
| 5 | LICENSE = "LGPLv2.1" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393" | ||
| 7 | |||
| 8 | DEPENDS = "popt" | ||
| 9 | DEPENDS_append_class-target = " efivar-native" | ||
| 10 | |||
| 11 | inherit pkgconfig | ||
| 12 | |||
| 13 | COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" | ||
| 14 | |||
| 15 | SRCREV = "11324799c68193116e1dd5f94b416591bd324f90" | ||
| 16 | SRC_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 | " | ||
| 21 | SRC_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 | " | ||
| 25 | SRC_URI_append_class-native = " file://fix-compile-failure-with-host-gcc-4.6.patch \ | ||
| 26 | " | ||
| 27 | |||
| 28 | S = "${WORKDIR}/git" | ||
| 29 | |||
| 30 | # Setting CROSS_COMPILE breaks pkgconfig, so just set AR | ||
| 31 | EXTRA_OEMAKE = "AR=${TARGET_PREFIX}gcc-ar" | ||
| 32 | |||
| 33 | do_compile_prepend() { | ||
| 34 | sed -i -e s:-Werror::g ${S}/gcc.specs | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install() { | ||
| 38 | oe_runmake install DESTDIR=${D} | ||
| 39 | } | ||
| 40 | |||
| 41 | do_install_append_class-native() { | ||
| 42 | install -D -m 0755 ${B}/src/makeguids ${D}${bindir}/makeguids | ||
| 43 | } | ||
| 44 | |||
| 45 | BBCLASSEXTEND = "native" | ||
