diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-08-09 13:56:30 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-14 12:51:21 +0100 |
commit | 57a19a352ff943a1fdc4230102d0ad73b452d64e (patch) | |
tree | 84fd5fe24365e3ee2f6d70070d74fa6841c09321 /meta/recipes-bsp | |
parent | 88e46ee15a4d7e73dedf4338608f4e981c1a04ad (diff) | |
download | poky-57a19a352ff943a1fdc4230102d0ad73b452d64e.tar.gz |
gnu-efi: Fix build on musl
Build with musl emits extra warnings about pointer incompatibility due
to different type of wchar_t than glibc which turns to be error in the
end, disable -Werror for musl.
(From OE-Core rev: 645d2bd6dee1d33a722e962d9f916540c2ef68a4)
Signed-off-by: Khem Raj <raj.khem@gmail.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')
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi/no-werror.patch | 19 | ||||
-rw-r--r-- | meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi/no-werror.patch b/meta/recipes-bsp/gnu-efi/gnu-efi/no-werror.patch new file mode 100644 index 0000000000..db2bcf70b7 --- /dev/null +++ b/meta/recipes-bsp/gnu-efi/gnu-efi/no-werror.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Do not treat warnings as errors | ||
2 | |||
3 | There are additional warnings found with musl which are | ||
4 | treated as errors and fails the build, we have more combinations | ||
5 | then upstream supports to handle | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | Upstream-Status: Inappropriate [OE specific] | ||
9 | --- a/Make.defaults | ||
10 | +++ b/Make.defaults | ||
11 | @@ -187,7 +187,7 @@ CFLAGS += $(ARCH3264) -g -O2 -Wall -Wex | ||
12 | -funsigned-char -fshort-wchar -fno-strict-aliasing \ | ||
13 | -ffreestanding -fno-stack-protector | ||
14 | else | ||
15 | -CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign -Werror \ | ||
16 | +CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign \ | ||
17 | -funsigned-char -fshort-wchar -fno-strict-aliasing \ | ||
18 | -ffreestanding -fno-stack-protector -fno-stack-check \ | ||
19 | -fno-stack-check \ | ||
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb index d37d638e09..43b7cc7529 100644 --- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb +++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.17.bb | |||
@@ -17,8 +17,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/files/${BP}.tar.bz2 \ | |||
17 | file://gnu-efi-3.0.9-fix-clang-build.patch \ | 17 | file://gnu-efi-3.0.9-fix-clang-build.patch \ |
18 | file://0001-riscv64-adjust-type-definitions.patch \ | 18 | file://0001-riscv64-adjust-type-definitions.patch \ |
19 | file://0001-riscv64-ignore-unknown-relocs.patch \ | 19 | file://0001-riscv64-ignore-unknown-relocs.patch \ |
20 | file://no-werror.patch \ | ||
20 | " | 21 | " |
21 | |||
22 | SRC_URI[sha256sum] = "7807e903349343a7a142ebb934703a2872235e89688cf586c032b0a1087bcaf4" | 22 | SRC_URI[sha256sum] = "7807e903349343a7a142ebb934703a2872235e89688cf586c032b0a1087bcaf4" |
23 | 23 | ||
24 | COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*|riscv64.*)-linux" | 24 | COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*|riscv64.*)-linux" |