diff options
author | Ross Burton <ross.burton@intel.com> | 2019-06-12 21:35:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-06-14 22:48:22 +0100 |
commit | b87f4d28f925891b2e9473cfac0d0885748f7f4f (patch) | |
tree | 460f06aef7ef4473fdceebdfe6fd53f933be4889 /meta/recipes-bsp/efibootmgr | |
parent | 8a8ae3759d4b2d3ff6c059df289d43e5f46d460f (diff) | |
download | poky-b87f4d28f925891b2e9473cfac0d0885748f7f4f.tar.gz |
efibootmgr: add
This was in meta-oe but EFI is sufficiently widespread 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: 275e5e7ecf4f79b7892ae35a47902188d9905bd0)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/efibootmgr')
-rw-r--r-- | meta/recipes-bsp/efibootmgr/efibootmgr/0001-remove-extra-decl.patch | 31 | ||||
-rw-r--r-- | meta/recipes-bsp/efibootmgr/efibootmgr_17.bb | 34 |
2 files changed, 65 insertions, 0 deletions
diff --git a/meta/recipes-bsp/efibootmgr/efibootmgr/0001-remove-extra-decl.patch b/meta/recipes-bsp/efibootmgr/efibootmgr/0001-remove-extra-decl.patch new file mode 100644 index 0000000000..42f3a8182d --- /dev/null +++ b/meta/recipes-bsp/efibootmgr/efibootmgr/0001-remove-extra-decl.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 99b578501643377e0b1994b2a068b790d189d5ad Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Jones <pjones@redhat.com> | ||
3 | Date: Wed, 13 Jun 2018 09:41:01 -0400 | ||
4 | Subject: [PATCH] remove extra decl | ||
5 | |||
6 | Signed-off-by: Peter Jones <pjones@redhat.com> | ||
7 | |||
8 | Upstream-Status: Backport [git://github.com/rhinstaller/efibootmgr.git] | ||
9 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
10 | |||
11 | --- | ||
12 | src/efibootmgr.c | 3 --- | ||
13 | 1 file changed, 3 deletions(-) | ||
14 | |||
15 | diff --git a/src/efibootmgr.c b/src/efibootmgr.c | ||
16 | index de38f01..4e1a680 100644 | ||
17 | --- a/src/efibootmgr.c | ||
18 | +++ b/src/efibootmgr.c | ||
19 | @@ -1536,9 +1536,6 @@ parse_opts(int argc, char **argv) | ||
20 | "invalid numeric value %s\n", | ||
21 | optarg); | ||
22 | } | ||
23 | - /* XXX efivar-36 accidentally doesn't have a public | ||
24 | - * header for this */ | ||
25 | - extern int efi_set_verbose(int verbosity, FILE *errlog); | ||
26 | efi_set_verbose(opts.verbose - 2, stderr); | ||
27 | break; | ||
28 | case 'V': | ||
29 | -- | ||
30 | 2.7.4 | ||
31 | |||
diff --git a/meta/recipes-bsp/efibootmgr/efibootmgr_17.bb b/meta/recipes-bsp/efibootmgr/efibootmgr_17.bb new file mode 100644 index 0000000000..0e5a81e316 --- /dev/null +++ b/meta/recipes-bsp/efibootmgr/efibootmgr_17.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | DESCRIPTION = "Linux user-space application to modify the EFI Boot Manager." | ||
2 | SUMMARY = "EFI Boot Manager" | ||
3 | HOMEPAGE = "https://github.com/rhboot/efibootmgr" | ||
4 | SECTION = "base" | ||
5 | |||
6 | LICENSE = "GPLv2+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | ||
8 | |||
9 | DEPENDS = "efivar popt" | ||
10 | |||
11 | COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" | ||
12 | |||
13 | SRC_URI = "git://github.com/rhinstaller/efibootmgr.git;protocol=https \ | ||
14 | file://0001-remove-extra-decl.patch \ | ||
15 | " | ||
16 | SRCREV = "e067160ecef8208e1944002e5d50b275733211fb" | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | inherit pkgconfig | ||
21 | |||
22 | # The directory under the ESP that the default bootloader is found in. When | ||
23 | # wic uses a subdirectory, this should use the same one too. | ||
24 | EFIDIR ?= "/" | ||
25 | |||
26 | EXTRA_OEMAKE += "'EFIDIR=${EFIDIR}'" | ||
27 | |||
28 | CFLAGS += " -Wno-error" | ||
29 | |||
30 | do_install () { | ||
31 | oe_runmake install DESTDIR="${D}" | ||
32 | } | ||
33 | |||
34 | CLEANBROKEN = "1" | ||