summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-06-12 21:35:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-14 22:48:22 +0100
commit8a8ae3759d4b2d3ff6c059df289d43e5f46d460f (patch)
tree282004cd174b9c46de48480c21ce1c9d50556150 /meta/recipes-bsp
parent2510f1c2e85d624bb326600277a7ba37bbb94bb0 (diff)
downloadpoky-8a8ae3759d4b2d3ff6c059df289d43e5f46d460f.tar.gz
efivar: add
This was in meta-oe but EFI is sufficiently wide spread now that we need it in core. The recipe is based on the one in meta-oe but with several updates. (From OE-Core rev: 53fe0133432f62024850e87456292b044d1280ee) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/efivar/efivar/no-werror.patch18
-rw-r--r--meta/recipes-bsp/efivar/efivar_37.bb37
2 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-bsp/efivar/efivar/no-werror.patch b/meta/recipes-bsp/efivar/efivar/no-werror.patch
new file mode 100644
index 0000000000..50a0b1023a
--- /dev/null
+++ b/meta/recipes-bsp/efivar/efivar/no-werror.patch
@@ -0,0 +1,18 @@
1Don't use -Werror because newer compilers introduce newer warnings.
2
3Upstream-Status: Inappropriate [https://github.com/rhboot/efivar/issues/131]
4Signed-off-by: Ross Burton <ross.burton@intel.com>
5
6diff --git a/gcc.specs b/gcc.specs
7index 45d43d1..1baf11a 100644
8--- a/gcc.specs
9+++ b/gcc.specs
10@@ -2,7 +2,7 @@
11 + -D_GNU_SOURCE
12
13 *efivar_cpp_options:
14- -Werror -Wall -std=gnu11 -Wextra
15+ -Wall -std=gnu11 -Wextra
16
17 *cpp_options:
18 + %(efivar_cpp_options)
diff --git a/meta/recipes-bsp/efivar/efivar_37.bb b/meta/recipes-bsp/efivar/efivar_37.bb
new file mode 100644
index 0000000000..c4254c70d9
--- /dev/null
+++ b/meta/recipes-bsp/efivar/efivar_37.bb
@@ -0,0 +1,37 @@
1SUMMARY = "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"