diff options
author | Phil Noh <Phil.Noh@amd.com> | 2024-12-05 11:09:40 -0600 |
---|---|---|
committer | Liming Gao <gaoliming@byosoft.com.cn> | 2024-12-11 08:38:27 +0800 |
commit | 1bb10a479fd67b693b3c9fd9c925f7ea1dcc923e (patch) | |
tree | bee9330c6449eb74c0564f22e14e5d7fcafbfd81 | |
parent | 1c5c951ec33b7851da67feeaf222d3edd6eb89be (diff) | |
download | edk2-1bb10a479fd67b693b3c9fd9c925f7ea1dcc923e.tar.gz |
MdeModulePkg/BrotliCustomDecompressLib: Make the library buildable
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4877
Brotli decompression library is supported in EDK2 core. Currently it is
not buildable when linking it to DxeIpl driver. The result is also checked
on edk2 master branch. It could be related to updating Brotli submodule
(v1.0.9) on the previous commit (1193aa2). The update makes the library
buildable. It was verified for the functional status.
Signed-off-by: Phil Noh <Phil.Noh@amd.com>
4 files changed, 33 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf index 525e92408d..a96d553ccd 100644 --- a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf @@ -1,9 +1,10 @@ ## @file
# BrotliCustomDecompressLib produces BROTLI custom decompression algorithm.
#
-# It is based on the Brotli v0.5.2.
+# It is based on the Brotli v1.0.9.
# Brotli was released on the website https://github.com/google/brotli.
#
+# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
# Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -41,6 +42,10 @@ # Wrapper header files end #
brotli/c/common/dictionary.c
brotli/c/common/transform.c
+ brotli/c/common/context.c
+ brotli/c/common/platform.c
+ brotli/c/common/constants.c
+ brotli/c/common/shared_dictionary.c
brotli/c/dec/bit_reader.c
brotli/c/dec/decode.c
brotli/c/dec/huffman.c
diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/intrin.h b/MdeModulePkg/Library/BrotliCustomDecompressLib/intrin.h new file mode 100644 index 0000000000..7bc33be3ca --- /dev/null +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/intrin.h @@ -0,0 +1,9 @@ +/** @file
+ Include file to support building the third-party brotli.
+
+ Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include <BrotliDecUefiSupport.h>
diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/memory.h b/MdeModulePkg/Library/BrotliCustomDecompressLib/memory.h new file mode 100644 index 0000000000..7bc33be3ca --- /dev/null +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/memory.h @@ -0,0 +1,9 @@ +/** @file
+ Include file to support building the third-party brotli.
+
+ Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include <BrotliDecUefiSupport.h>
diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/stdio.h b/MdeModulePkg/Library/BrotliCustomDecompressLib/stdio.h new file mode 100644 index 0000000000..7bc33be3ca --- /dev/null +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/stdio.h @@ -0,0 +1,9 @@ +/** @file
+ Include file to support building the third-party brotli.
+
+ Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include <BrotliDecUefiSupport.h>
|