]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/C/BrotliCompress/Makefile
BaseTools: Fix BrotliCompress tool issue
authorYunhua Feng <fengyunhua@byosoft.com.cn>
Tue, 10 Nov 2020 02:41:08 +0000 (10:41 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 13 Nov 2020 06:23:56 +0000 (06:23 +0000)
commit662b42db76a5b195c3aa94ab2946e342a15cd185
tree0c424fb94cdab80d0fb1650846b2811c8f300adb
parent4eea8f0136b3b245bc429a5ff71a70c0840ba927
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>
BaseTools/BinWrappers/WindowsLike/BrotliCompress.bat [deleted file]
BaseTools/Source/C/BrotliCompress/BrotliCompress.c [new file with mode: 0644]
BaseTools/Source/C/BrotliCompress/GNUmakefile
BaseTools/Source/C/BrotliCompress/Makefile