diff options
| -rw-r--r-- | meta/conf/distro/include/maintainers.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-bsp/efivar/efivar/no-werror.patch | 18 | ||||
| -rw-r--r-- | meta/recipes-bsp/efivar/efivar_37.bb | 37 |
3 files changed, 56 insertions, 0 deletions
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 40c93107c8..b3646d2b4a 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc | |||
| @@ -162,6 +162,7 @@ RECIPE_MAINTAINER_pn-dtc = "Alexander Kanavin <alex.kanavin@gmail.com>" | |||
| 162 | RECIPE_MAINTAINER_pn-dwarfsrcfiles = "Alexander Kanavin <alex.kanavin@gmail.com>" | 162 | RECIPE_MAINTAINER_pn-dwarfsrcfiles = "Alexander Kanavin <alex.kanavin@gmail.com>" |
| 163 | RECIPE_MAINTAINER_pn-e2fsprogs = "Robert Yang <liezhi.yang@windriver.com>" | 163 | RECIPE_MAINTAINER_pn-e2fsprogs = "Robert Yang <liezhi.yang@windriver.com>" |
| 164 | RECIPE_MAINTAINER_pn-ed = "Alexander Kanavin <alex.kanavin@gmail.com>" | 164 | RECIPE_MAINTAINER_pn-ed = "Alexander Kanavin <alex.kanavin@gmail.com>" |
| 165 | RECIPE_MAINTAINER_pn-efivar = "Ross Burton <ross.burton@intel.com>" | ||
| 165 | RECIPE_MAINTAINER_pn-eglinfo-fb = "Alexander Kanavin <alex.kanavin@gmail.com>" | 166 | RECIPE_MAINTAINER_pn-eglinfo-fb = "Alexander Kanavin <alex.kanavin@gmail.com>" |
| 166 | RECIPE_MAINTAINER_pn-eglinfo-x11 = "Alexander Kanavin <alex.kanavin@gmail.com>" | 167 | RECIPE_MAINTAINER_pn-eglinfo-x11 = "Alexander Kanavin <alex.kanavin@gmail.com>" |
| 167 | RECIPE_MAINTAINER_pn-eglinfo-wayland = "Alexander Kanavin <alex.kanavin@gmail.com>" | 168 | RECIPE_MAINTAINER_pn-eglinfo-wayland = "Alexander Kanavin <alex.kanavin@gmail.com>" |
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" | ||
