similarity index 90%
rename from recipes-bsp/efibootguard/efibootguard_0.10.bb
rename to recipes-bsp/efibootguard/efibootguard_0.11.bb
@@ -19,9 +19,9 @@ MAINTAINER = "Jan Kiszka <jan.kiszka@siemens.com>"
SRC_URI = " \
https://github.com/siemens/efibootguard/archive/refs/tags/v${PV}.tar.gz;downloadfilename=efitbootguard-v${PV}.tar.gz \
file://debian \
- file://0001-configure-Fix-aarch64-EFI-arch.patch \
+ file://0001-Makefile-Drop-nostdinc-for-EFI-binaries.patch \
"
-SRC_URI[sha256sum] = "4d58574a0bb8f1e56056ab0bcc2487d37e49fa147dc991e719c2ec8e20f88dd3"
+SRC_URI[sha256sum] = "12bd84ff63a34bef56e489b48d4f97955aa4d864eeff9ea2dea1d24a286d8ebe"
PROVIDES = "${PN}"
PROVIDES += "${PN}-dev"
new file mode 100644
@@ -0,0 +1,28 @@
+From daf4cb61bec56dac628be83b95a7072c184eabcd Mon Sep 17 00:00:00 2001
+From: Jan Kiszka <jan.kiszka@siemens.com>
+Date: Wed, 4 May 2022 11:52:53 +0200
+Subject: [PATCH] Makefile: Drop -nostdinc for EFI binaries
+
+Not needed, also systemd-boot does not use it, and it actually triggers
+a build failure on Debian 10, possibly on other distros as well.
+
+Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
+---
+ Makefile.am | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index f0daa15..7398b85 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -191,7 +191,6 @@ efi_cflags = \
+ -Wall \
+ -Wextra \
+ -std=gnu99 \
+- -nostdinc \
+ -ggdb -O0 \
+ -fpic \
+ -fshort-wchar \
+--
+2.34.1
+
deleted file mode 100644
@@ -1,28 +0,0 @@
-From 3f11612fbcbd1c17988d634ecdaecf1ec241f6e0 Mon Sep 17 00:00:00 2001
-From: Jan Kiszka <jan.kiszka@siemens.com>
-Date: Mon, 21 Mar 2022 07:02:28 +0100
-Subject: [PATCH] configure: Fix aarch64 EFI arch
-
-It's aa64 here according to the UEFI spec.
-
-Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index a1a83e9..09d06d7 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -102,7 +102,7 @@ AM_COND_IF(ARCH_X86_64, [
- MACHINE_TYPE_NAME=x64])
-
- AM_COND_IF(ARCH_AARCH64, [
-- MACHINE_TYPE_NAME=aarch64])
-+ MACHINE_TYPE_NAME=aa64])
-
- AC_SUBST([ARCH])
- AC_SUBST([MACHINE_TYPE_NAME])
-2.34.1
-
@@ -7,7 +7,7 @@ Homepage: ${HOMEPAGE}
Maintainer: ${MAINTAINER}
Package: ${PN}
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, python3
Section: base
Architecture: ${DISTRO_ARCH}
Priority: required
@@ -1,6 +1,7 @@
#!/usr/bin/dh-exec
bg_setenv usr/bin
bg_printenv usr/bin
-efibootguard*.efi usr/share/efibootguard
+tools/bg_gen_unified_kernel usr/bin
+*.efi usr/share/efibootguard
completion/bash/bg_printenv.bash => usr/share/bash-completion/completions/bg_printenv
completion/bash/bg_setenv.bash => usr/share/bash-completion/completions/bg_setenv