diff options
author | Ross Burton <ross.burton@intel.com> | 2019-06-12 21:35:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-14 22:48:22 +0100 |
commit | 8a8ae3759d4b2d3ff6c059df289d43e5f46d460f (patch) | |
tree | 282004cd174b9c46de48480c21ce1c9d50556150 /meta/recipes-bsp/efivar | |
parent | 2510f1c2e85d624bb326600277a7ba37bbb94bb0 (diff) | |
download | poky-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/efivar')
-rw-r--r-- | meta/recipes-bsp/efivar/efivar/no-werror.patch | 18 | ||||
-rw-r--r-- | meta/recipes-bsp/efivar/efivar_37.bb | 37 |
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 @@ | |||
1 | Don't use -Werror because newer compilers introduce newer warnings. | ||
2 | |||
3 | Upstream-Status: Inappropriate [https://github.com/rhboot/efivar/issues/131] | ||
4 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
5 | |||
6 | diff --git a/gcc.specs b/gcc.specs | ||
7 | index 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 @@ | |||
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" | ||