From 91df32a7901c64164fb70bf4f070579f75c71397 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 24 Aug 2017 20:56:27 -0700 Subject: efibootmgr: Upgrade to 0.15 Signed-off-by: Khem Raj Signed-off-by: Martin Jansa --- ...e-extra-const-keywords-gcc-7-gripes-about.patch | 49 ---------------------- .../recipes-extended/efibootmgr/efibootmgr_0.12.bb | 28 ------------- .../recipes-extended/efibootmgr/efibootmgr_0.15.bb | 27 ++++++++++++ 3 files changed, 27 insertions(+), 77 deletions(-) delete mode 100644 meta-oe/recipes-extended/efibootmgr/efibootmgr/0001-Remove-extra-const-keywords-gcc-7-gripes-about.patch delete mode 100644 meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb create mode 100644 meta-oe/recipes-extended/efibootmgr/efibootmgr_0.15.bb diff --git a/meta-oe/recipes-extended/efibootmgr/efibootmgr/0001-Remove-extra-const-keywords-gcc-7-gripes-about.patch b/meta-oe/recipes-extended/efibootmgr/efibootmgr/0001-Remove-extra-const-keywords-gcc-7-gripes-about.patch deleted file mode 100644 index b6211c28a1..0000000000 --- a/meta-oe/recipes-extended/efibootmgr/efibootmgr/0001-Remove-extra-const-keywords-gcc-7-gripes-about.patch +++ /dev/null @@ -1,49 +0,0 @@ -From a9f8d414972b0b7c963d7efe38b5cfdcb6413c46 Mon Sep 17 00:00:00 2001 -From: Peter Jones -Date: Mon, 6 Feb 2017 16:34:54 -0500 -Subject: [PATCH] Remove extra const keywords gcc 7 gripes about. - -Signed-off-by: Peter Jones ---- - src/efibootdump.c | 2 +- - src/efibootmgr.c | 4 ++-- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/src/efibootdump.c b/src/efibootdump.c -index 3e448c2..5a9b681 100644 ---- a/src/efibootdump.c -+++ b/src/efibootdump.c -@@ -36,7 +36,7 @@ print_boot_entry(efi_load_option *loadopt, size_t data_size) - uint8_t *optional_data = NULL; - size_t optional_data_len = 0; - uint16_t pathlen; -- const unsigned char const *desc; -+ const unsigned char *desc; - char *raw; - size_t raw_len; - -diff --git a/src/efibootmgr.c b/src/efibootmgr.c -index baefa68..683623b 100644 ---- a/src/efibootmgr.c -+++ b/src/efibootmgr.c -@@ -214,7 +214,7 @@ warn_duplicate_name(list_t *boot_list) - list_t *pos; - var_entry_t *boot; - efi_load_option *load_option; -- const unsigned char const *desc; -+ const unsigned char *desc; - - list_for_each(pos, boot_list) { - boot = list_entry(pos, var_entry_t, list); -@@ -821,7 +821,7 @@ show_boot_vars() - { - list_t *pos; - var_entry_t *boot; -- const unsigned char const *description; -+ const unsigned char *description; - efi_load_option *load_option; - efidp dp = NULL; - unsigned char *optional_data = NULL; --- -2.12.2 - diff --git a/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb b/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb deleted file mode 100644 index 193150bb9f..0000000000 --- a/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION = "Linux user-space application to modify the EFI Boot Manager." -SUMMARY = "EFI Boot Manager" -HOMEPAGE = "https://github.com/rhinstaller/efibootmgr" -SECTION = "base" - -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" - -DEPENDS = "pciutils zlib efivar" - -COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" - -SRCREV = "75d25807ba81cb724964c989012611272c8f1f5d" -SRC_URI = "git://github.com/rhinstaller/efibootmgr.git;protocol=https \ - file://0001-Remove-extra-const-keywords-gcc-7-gripes-about.patch \ - " - -S = "${WORKDIR}/git" - - -inherit pkgconfig - -EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/src/include `pkg-config --cflags efivar` \ - -DEFIBOOTMGR_VERSION=\"$(RELEASE_MAJOR).$(RELEASE_MINOR)\" '" - -do_install () { - install -D -p -m0755 src/efibootmgr ${D}/${sbindir}/efibootmgr -} diff --git a/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.15.bb b/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.15.bb new file mode 100644 index 0000000000..9cc62a9591 --- /dev/null +++ b/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.15.bb @@ -0,0 +1,27 @@ +DESCRIPTION = "Linux user-space application to modify the EFI Boot Manager." +SUMMARY = "EFI Boot Manager" +HOMEPAGE = "https://github.com/rhinstaller/efibootmgr" +SECTION = "base" + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" + +DEPENDS = "pciutils zlib efivar" + +COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" + +SRCREV = "5c14da22802576a99ebb854f7aa174f796f7b031" +SRC_URI = "git://github.com/rhinstaller/efibootmgr.git;protocol=https \ + " +S = "${WORKDIR}/git" + +inherit pkgconfig + +EXTRA_OEMAKE = "'EFIDIR=/' 'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/src/include `pkg-config --cflags efivar`'" + +CFLAGS_append_toolchain-clang = " -Wno-error" +do_install () { + install -D -p -m0755 ${B}/src/efibootmgr ${D}/${sbindir}/efibootmgr +} + +CLEANBROKEN = "1" -- cgit v1.2.3-54-g00ecf