mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-07 16:59:30 +00:00
arm/edk2-firmware: upgrade to 202202
Drop 0001-Fix-VLA-parameter-warning.patch, this is merged upstream. Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
@@ -16,7 +16,6 @@ EDK2_PLATFORMS_SRC_URI = "git://github.com/tianocore/edk2-platforms.git;branch=m
|
||||
SRC_URI = "\
|
||||
${EDK2_SRC_URI};name=edk2;destsuffix=edk2;nobranch=1 \
|
||||
${EDK2_PLATFORMS_SRC_URI};name=edk2-platforms;destsuffix=edk2/edk2-platforms;nobranch=1 \
|
||||
file://0001-Fix-VLA-parameter-warning.patch \
|
||||
file://unaligned.patch \
|
||||
"
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
SRCREV_edk2 ?= "bb1bba3d776733c41dbfa2d1dc0fe234819a79f2"
|
||||
SRCREV_edk2-platforms ?= "3e73df15730667c46a1e449cca872e7f8861007c"
|
||||
|
||||
require edk2-firmware.inc
|
||||
@@ -0,0 +1,4 @@
|
||||
SRCREV_edk2 ?= "b24306f15daa2ff8510b06702114724b33895d3c"
|
||||
SRCREV_edk2-platforms ?= "c9e377b00fc086fcb5a5b41663a0149bde9bcc2e"
|
||||
|
||||
require edk2-firmware.inc
|
||||
@@ -1,44 +0,0 @@
|
||||
From 498627ebda6271b59920f43a0b9b6187edeb7b09 Mon Sep 17 00:00:00 2001
|
||||
From: Adrian Herrera <adr.her.arc.95@gmail.com>
|
||||
Date: Mon, 22 Mar 2021 21:06:47 +0000
|
||||
Subject: [PATCH] Fix VLA parameter warning
|
||||
|
||||
Make VLA buffer types consistent in declarations and definitions.
|
||||
Resolves build crash when using -Werror due to "vla-parameter" warning.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/google/brotli/pull/893]
|
||||
Signed-off-by: Adrian Herrera <adr.her.arc.95@gmail.com>
|
||||
---
|
||||
c/dec/decode.c | 6 ++++--
|
||||
c/enc/encode.c | 5 +++--
|
||||
2 files changed, 7 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
|
||||
+++ b/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
|
||||
@@ -2030,8 +2030,10 @@ static BROTLI_NOINLINE BrotliDecoderErro
|
||||
}
|
||||
|
||||
BrotliDecoderResult BrotliDecoderDecompress(
|
||||
- size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
|
||||
- uint8_t* decoded_buffer) {
|
||||
+ size_t encoded_size,
|
||||
+ const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
|
||||
+ size_t* decoded_size,
|
||||
+ uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]) {
|
||||
BrotliDecoderState s;
|
||||
BrotliDecoderResult result;
|
||||
size_t total_out = 0;
|
||||
--- a/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c
|
||||
+++ b/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c
|
||||
@@ -1470,8 +1470,9 @@ static size_t MakeUncompressedStream(
|
||||
|
||||
BROTLI_BOOL BrotliEncoderCompress(
|
||||
int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
|
||||
- const uint8_t* input_buffer, size_t* encoded_size,
|
||||
- uint8_t* encoded_buffer) {
|
||||
+ const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
|
||||
+ size_t* encoded_size,
|
||||
+ uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]) {
|
||||
BrotliEncoderState* s;
|
||||
size_t out_size = *encoded_size;
|
||||
const uint8_t* input_start = input_buffer;
|
||||
@@ -1,27 +1,21 @@
|
||||
Latest clang is causing build failures because -Werror is used:
|
||||
|
||||
edk2/MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h:78:47:
|
||||
error: field Guid within 'FPDT_GUID_EVENT_RECORD' is less aligned than 'EFI_GUID'
|
||||
and is usually due to 'FPDT_GUID_EVENT_RECORD' being packed, which can lead to
|
||||
unaligned accesses [-Werror,-Wunaligned-access]
|
||||
|
||||
This has been reported upstream[1] so until this is resolved, ignore the warnings.
|
||||
|
||||
[1] https://edk2.groups.io/g/devel/message/86838
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template
|
||||
index 2e6b382ab6..75bfbc5ae6 100755
|
||||
--- a/BaseTools/Conf/tools_def.template
|
||||
+++ b/BaseTools/Conf/tools_def.template
|
||||
@@ -2566,7 +2566,7 @@ DEFINE CLANG38_X64_PREFIX = ENV(CLANG38_BIN)
|
||||
DEFINE CLANG38_IA32_TARGET = -target i686-pc-linux-gnu
|
||||
|
||||
DEFINE CLANG38_X64_TARGET = -target x86_64-pc-linux-gnu
|
||||
|
||||
|
||||
|
||||
-DEFINE CLANG38_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option
|
||||
|
||||
Latest clang is causing build failures because -Werror is used:
|
||||
|
||||
edk2/MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h:78:47:
|
||||
error: field Guid within 'FPDT_GUID_EVENT_RECORD' is less aligned than 'EFI_GUID'
|
||||
and is usually due to 'FPDT_GUID_EVENT_RECORD' being packed, which can lead to
|
||||
unaligned accesses [-Werror,-Wunaligned-access]
|
||||
|
||||
This has been reported upstream[1] so until this is resolved, ignore the warnings.
|
||||
|
||||
[1] https://edk2.groups.io/g/devel/message/86838
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template
|
||||
index f2bb6247e8..ca2b449f0a 100755
|
||||
--- a/BaseTools/Conf/tools_def.template
|
||||
+++ b/BaseTools/Conf/tools_def.template
|
||||
@@ -2570 +2570 @@ DEFINE CLANG38_X64_TARGET = -target x86_64-pc-linux-gnu
|
||||
-DEFINE CLANG38_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-const-variable
|
||||
+DEFINE CLANG38_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-error=unaligned-access
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require recipes-bsp/uefi/edk2-firmware_202111.bb
|
||||
require recipes-bsp/uefi/edk2-firmware_202202.bb
|
||||
|
||||
LICENSE += "& Apache-2.0"
|
||||
LIC_FILES_CHKSUM += "file://ShellPkg/Application/sbsa-acs/LICENSE.md;md5=2a944942e1496af1886903d274dedb13"
|
||||
|
||||
Reference in New Issue
Block a user