From 662b42db76a5b195c3aa94ab2946e342a15cd185 Mon Sep 17 00:00:00 2001 From: Yunhua Feng Date: Tue, 10 Nov 2020 10:41:08 +0800 Subject: BaseTools: Fix BrotliCompress tool issue REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2946 This is the regression issue in BaseTools BrotliCompress after Brotli is changed to submodule. BrotliCompress should store the source size and scratch buffer size into the header of the compressed binary data. But now, BrotliCompress doesn't store them. So, BrotliDecompress can't work. To fix this issue, BrotliCompress tool main() function should be provided. It needs to support the options of -e, -d, -o file, -g gap, -q level. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Yunhua Feng Reviewed-by: Liming Gao --- .../BinWrappers/WindowsLike/BrotliCompress.bat | 55 ---------------------- 1 file changed, 55 deletions(-) delete mode 100644 BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat (limited to 'BaseTools/BinWrappers') diff --git a/BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat b/BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat deleted file mode 100644 index 788c99a130..0000000000 --- a/BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat +++ /dev/null @@ -1,55 +0,0 @@ -@REM @file -@REM This script will exec Brotli tool with -e/-d options. -@REM -@REM Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.
-@REM SPDX-License-Identifier: BSD-2-Clause-Patent -@REM - -@echo off -@setlocal - -set QLT=-q 9 -w 22 -set ARGS= - -:Begin -if "%1"=="" goto End - -if "%1"=="-d" ( - set ARGS=%ARGS% %1 - shift - goto Begin -) - -if "%1"=="-e" ( - shift - goto Begin -) - -if "%1"=="-g" ( - set ARGS=%ARGS% %1 %2 - shift - shift - goto Begin -) - -if "%1"=="-o" ( - set ARGS=%ARGS% %1 %2 - shift - shift - goto Begin -) - -if "%1"=="-q" ( - set QLT=%1 %2 - shift - shift - goto Begin -) - -set ARGS=%ARGS% %1 -shift -goto Begin - -:End -Brotli %QLT% %ARGS% -@echo on -- cgit v1.2.3