From 1bb10a479fd67b693b3c9fd9c925f7ea1dcc923e Mon Sep 17 00:00:00 2001 From: Phil Noh Date: Thu, 5 Dec 2024 11:09:40 -0600 Subject: 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 --- .../BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf | 7 ++++++- MdeModulePkg/Library/BrotliCustomDecompressLib/intrin.h | 9 +++++++++ MdeModulePkg/Library/BrotliCustomDecompressLib/memory.h | 9 +++++++++ MdeModulePkg/Library/BrotliCustomDecompressLib/stdio.h | 9 +++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 MdeModulePkg/Library/BrotliCustomDecompressLib/intrin.h create mode 100644 MdeModulePkg/Library/BrotliCustomDecompressLib/memory.h create mode 100644 MdeModulePkg/Library/BrotliCustomDecompressLib/stdio.h 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.
# Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.
# # 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.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include 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.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include 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.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include -- cgit