summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ovmf/ovmf
diff options
context:
space:
mode:
authorwangmy <wangmy@fujitsu.com>2022-03-01 21:07:52 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-02 18:43:24 +0000
commit05fbb1a2ee320816f521d3e27b3ab2b8bfa67a5b (patch)
tree0502e7e6d67bf87fb3432f22efb27f35e93ceb7c /meta/recipes-core/ovmf/ovmf
parent3a9e6f8194ad2b275b17fb45c779de864384b70b (diff)
downloadpoky-05fbb1a2ee320816f521d3e27b3ab2b8bfa67a5b.tar.gz
ovmf: upgrade 202111 -> 202202
0001-Fix-VLA-parameter-warning.patch removed since it's included in 202202 Changelog: ========= OvmfPkg Add new target for Cloud Hypervisor Add TDVF to OvmfPkg Add new APIs to UefiCpuPkg/UefiCpuLib Add AMD Secure Nested Paging Support Add SSDT PCI generator in DynamicTablesPkg Support ACPI 6.4 PPTT changes Add FdtHwInfoParser library Add DynamicPlatRepo library Make package and platform builds reproducible across source format changes Add Uncrustify CI Plugin Apply uncrustify changes to all package C and H files (From OE-Core rev: 5e280a4d6bf67c3b7d26c444bc52f25e63ae57a4) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/ovmf/ovmf')
-rw-r--r--meta/recipes-core/ovmf/ovmf/0001-Fix-VLA-parameter-warning.patch51
1 files changed, 0 insertions, 51 deletions
diff --git a/meta/recipes-core/ovmf/ovmf/0001-Fix-VLA-parameter-warning.patch b/meta/recipes-core/ovmf/ovmf/0001-Fix-VLA-parameter-warning.patch
deleted file mode 100644
index d658123b81..0000000000
--- a/meta/recipes-core/ovmf/ovmf/0001-Fix-VLA-parameter-warning.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 498627ebda6271b59920f43a0b9b6187edeb7b09 Mon Sep 17 00:00:00 2001
2From: Adrian Herrera <adr.her.arc.95@gmail.com>
3Date: Mon, 22 Mar 2021 21:06:47 +0000
4Subject: [PATCH] Fix VLA parameter warning
5
6Make VLA buffer types consistent in declarations and definitions.
7Resolves build crash when using -Werror due to "vla-parameter" warning.
8
9Upstream-Status: Submitted [https://github.com/google/brotli/pull/893]
10Signed-off-by: Adrian Herrera <adr.her.arc.95@gmail.com>
11---
12 c/dec/decode.c | 6 ++++--
13 c/enc/encode.c | 5 +++--
14 2 files changed, 7 insertions(+), 4 deletions(-)
15
16diff --git a/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c b/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
17index 114c505..bb6f1ab 100644
18--- a/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
19+++ b/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
20@@ -2030,8 +2030,10 @@ static BROTLI_NOINLINE BrotliDecoderErrorCode SafeProcessCommands(
21 }
22
23 BrotliDecoderResult BrotliDecoderDecompress(
24- size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
25- uint8_t* decoded_buffer) {
26+ size_t encoded_size,
27+ const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
28+ size_t* decoded_size,
29+ uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]) {
30 BrotliDecoderState s;
31 BrotliDecoderResult result;
32 size_t total_out = 0;
33diff --git a/c/enc/encode.c b/c/enc/encode.c
34index 68548ef..ab0a490 100644
35--- a/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c
36+++ c/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c
37@@ -1470,8 +1470,9 @@ static size_t MakeUncompressedStream(
38
39 BROTLI_BOOL BrotliEncoderCompress(
40 int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
41- const uint8_t* input_buffer, size_t* encoded_size,
42- uint8_t* encoded_buffer) {
43+ const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
44+ size_t* encoded_size,
45+ uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]) {
46 BrotliEncoderState* s;
47 size_t out_size = *encoded_size;
48 const uint8_t* input_start = input_buffer;
49--
502.31.1
51