diff options
author | Yunhua Feng <fengyunhua@byosoft.com.cn> | 2020-11-10 10:41:08 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-11-13 06:23:56 +0000 |
commit | 662b42db76a5b195c3aa94ab2946e342a15cd185 (patch) | |
tree | 0c424fb94cdab80d0fb1650846b2811c8f300adb /BaseTools/BinWrappers | |
parent | 4eea8f0136b3b245bc429a5ff71a70c0840ba927 (diff) | |
download | edk2-662b42db76a5b195c3aa94ab2946e342a15cd185.tar.gz |
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 <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Signed-off-by: Yunhua Feng <fengyunhua@byosoft.com.cn>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'BaseTools/BinWrappers')
-rw-r--r-- | BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat | 55 |
1 files changed, 0 insertions, 55 deletions
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.<BR>
-@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
|