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