mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 21:32:13 +02:00
gnu-efi: upgrade 3.0.17 -> 3.0.18
* Drop backport patches. * Refresh patches. (From OE-Core rev: 89088a504052f7b748d12a37372aea5ceeb790da) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From f56ddb00a656af2e84f839738fad19909ac65047 Mon Sep 17 00:00:00 2001
|
||||
From 70e30774debb9ab5d53a29c183f86fc569661b7c Mon Sep 17 00:00:00 2001
|
||||
From: Saul Wold <sgw@linux.intel.com>
|
||||
Date: Sun, 9 Mar 2014 15:22:15 +0200
|
||||
Subject: [PATCH] Fix parallel make failure for archives
|
||||
@@ -19,16 +19,15 @@ Signed-off-by: Darren Hart <dvhart@linux.intel.com>
|
||||
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
|
||||
[Rebased for 3.0.8]
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
|
||||
---
|
||||
lib/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/Makefile b/lib/Makefile
|
||||
index 1fc6a47..54b0ca7 100644
|
||||
index ec1f9e3..79a794d 100644
|
||||
--- a/lib/Makefile
|
||||
+++ b/lib/Makefile
|
||||
@@ -77,7 +77,7 @@ libsubdirs:
|
||||
@@ -75,7 +75,7 @@ libsubdirs:
|
||||
$(OBJS): libsubdirs
|
||||
|
||||
libefi.a: $(OBJS)
|
||||
@@ -36,4 +35,7 @@ index 1fc6a47..54b0ca7 100644
|
||||
+ $(AR) $(ARFLAGS) $@ $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f libefi.a *~ $(OBJS) */*.o
|
||||
@rm -vf libefi.a *~ $(OBJS) */*.o
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
From 1de509497826faa0ad84b82f5e2c3d21ee613459 Mon Sep 17 00:00:00 2001
|
||||
From: Moody Liu <mooodyhunter@outlook.com>
|
||||
Date: Sat, 13 May 2023 17:39:16 +0100
|
||||
Subject: [PATCH] riscv64: adjust type definitions
|
||||
|
||||
CHAR8 needs to be defined while BOOLEAN should be removed
|
||||
here to prevent typedef conflicts
|
||||
|
||||
Upstream-Status: Backport [https://sourceforge.net/p/gnu-efi/code/ci/1de509497826faa0ad84b82f5e2c3d21ee613459/]
|
||||
Signed-off-by: Moody Liu <mooodyhunter@outlook.com>
|
||||
---
|
||||
inc/riscv64/efibind.h | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/inc/riscv64/efibind.h b/inc/riscv64/efibind.h
|
||||
index 4fdf81d..d8b4f39 100644
|
||||
--- a/inc/riscv64/efibind.h
|
||||
+++ b/inc/riscv64/efibind.h
|
||||
@@ -32,11 +32,9 @@ typedef uint16_t UINT16;
|
||||
typedef int16_t INT16;
|
||||
typedef uint8_t UINT8;
|
||||
typedef int8_t INT8;
|
||||
+typedef char CHAR8;
|
||||
typedef wchar_t CHAR16;
|
||||
#define WCHAR CHAR16
|
||||
-#ifndef BOOLEAN
|
||||
-typedef uint8_t BOOLEAN;
|
||||
-#endif
|
||||
#undef VOID
|
||||
typedef void VOID;
|
||||
typedef int64_t INTN;
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
From 708f66acfec9a86f237726d45095cbd380fd83ca Mon Sep 17 00:00:00 2001
|
||||
From: Callum Farmer <gmbr3@opensuse.org>
|
||||
Date: Wed, 21 Jun 2023 11:32:28 +0100
|
||||
Subject: [PATCH] riscv64: ignore unknown relocs
|
||||
|
||||
Sometimes ld emits relocs such as R_RISCV_64 for unwind symbols
|
||||
these don't need to be handled yet so just can be skipped otherwise
|
||||
the binary will never load
|
||||
|
||||
Upstream-Status: Backport [https://sourceforge.net/p/gnu-efi/code/ci/708f66acfec9a86f237726d45095cbd380fd83ca/]
|
||||
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
|
||||
---
|
||||
gnuefi/reloc_riscv64.c | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/gnuefi/reloc_riscv64.c b/gnuefi/reloc_riscv64.c
|
||||
index 0b02d83..e429602 100644
|
||||
--- a/gnuefi/reloc_riscv64.c
|
||||
+++ b/gnuefi/reloc_riscv64.c
|
||||
@@ -81,8 +81,7 @@ EFI_STATUS EFIAPI _relocate(long ldbase, Elf_Dyn *dyn)
|
||||
*addr = ldbase + rel->r_addend;
|
||||
break;
|
||||
default:
|
||||
- /* Panic */
|
||||
- while (1) ;
|
||||
+ break;
|
||||
}
|
||||
rel = (Elf_Rela *)((char *)rel + relent);
|
||||
relsz -= relent;
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@@ -1,14 +1,24 @@
|
||||
Do not treat warnings as errors
|
||||
From 89218bb3c5eb7b97987769cb4f7bf8323d35ca7e Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 16 May 2024 21:38:32 +0800
|
||||
Subject: [PATCH] Do not treat warnings as errors
|
||||
|
||||
There are additional warnings found with musl which are
|
||||
treated as errors and fails the build, we have more combinations
|
||||
then upstream supports to handle
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Inappropriate [OE specific]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Make.defaults | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Make.defaults b/Make.defaults
|
||||
index 0068e31..b643285 100755
|
||||
--- a/Make.defaults
|
||||
+++ b/Make.defaults
|
||||
@@ -187,7 +187,7 @@ CFLAGS += $(ARCH3264) -g -O2 -Wall -Wex
|
||||
@@ -190,7 +190,7 @@ CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \
|
||||
-funsigned-char -fshort-wchar -fno-strict-aliasing \
|
||||
-ffreestanding -fno-stack-protector
|
||||
else
|
||||
@@ -16,4 +26,7 @@ Upstream-Status: Inappropriate [OE specific]
|
||||
+CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign \
|
||||
-funsigned-char -fshort-wchar -fno-strict-aliasing \
|
||||
-ffreestanding -fno-stack-protector -fno-stack-check \
|
||||
-fno-stack-check \
|
||||
$(if $(findstring gcc,$(CC)),-fno-merge-all-constants,)
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
Fix building with CLANG-9.0.0
|
||||
|
||||
Fixes
|
||||
clang-9: error: unknown argument: '-maccumulate-outgoing-args'
|
||||
|
||||
Upstream-Status: Submitted [https://sourceforge.net/p/gnu-efi/patches/70/]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
--- a/Make.defaults
|
||||
+++ b/Make.defaults
|
||||
@@ -110,10 +110,10 @@
|
||||
|| ( [ $(GCCVERSION) -eq "4" ] \
|
||||
&& [ $(GCCMINOR) -ge "7" ] ) ) \
|
||||
&& echo 1)
|
||||
- ifeq ($(GCCNEWENOUGH),1)
|
||||
- CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11
|
||||
- else ifeq ($(USING_CLANG),clang)
|
||||
+ ifeq ($(USING_CLANG),clang)
|
||||
CPPFLAGS += -DGNU_EFI_USE_MS_ABI --std=c11
|
||||
+ else ifeq ($(GCCNEWENOUGH),1)
|
||||
+ CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11
|
||||
endif
|
||||
|
||||
CFLAGS += -mno-red-zone
|
||||
@@ -13,13 +13,10 @@ LIC_FILES_CHKSUM = "file://gnuefi/crt0-efi-arm.S;beginline=4;endline=16;md5=e582
|
||||
"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/files/${BP}.tar.bz2 \
|
||||
file://parallel-make-archives.patch \
|
||||
file://gnu-efi-3.0.9-fix-clang-build.patch \
|
||||
file://0001-riscv64-adjust-type-definitions.patch \
|
||||
file://0001-riscv64-ignore-unknown-relocs.patch \
|
||||
file://no-werror.patch \
|
||||
file://0001-Fix-parallel-make-failure-for-archives.patch \
|
||||
file://0002-Do-not-treat-warnings-as-errors.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "7807e903349343a7a142ebb934703a2872235e89688cf586c032b0a1087bcaf4"
|
||||
SRC_URI[sha256sum] = "7f212c96ee66547eeefb531267b641e5473d7d8529f0bd8ccdefd33cf7413f5c"
|
||||
|
||||
COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*|riscv64.*)-linux"
|
||||
COMPATIBLE_HOST:armv4 = 'null'
|
||||
Reference in New Issue
Block a user