binman: Remove obsolete compressed data header handling
Remove the obsolete compressed data header handling from the utilities to compress and decompress data. The header is uncommon, not supported by U-Boot and incompatible with external compressed artifacts. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:

committed by
Simon Glass

parent
9f74395ee5
commit
4f463e3dee
@@ -241,9 +241,9 @@ class CbfsFile(object):
|
||||
"""Handle decompressing data if necessary"""
|
||||
indata = self.data
|
||||
if self.compress == COMPRESS_LZ4:
|
||||
data = comp_util.decompress(indata, 'lz4', with_header=False)
|
||||
data = comp_util.decompress(indata, 'lz4')
|
||||
elif self.compress == COMPRESS_LZMA:
|
||||
data = comp_util.decompress(indata, 'lzma', with_header=False)
|
||||
data = comp_util.decompress(indata, 'lzma')
|
||||
else:
|
||||
data = indata
|
||||
self.memlen = len(data)
|
||||
@@ -362,9 +362,9 @@ class CbfsFile(object):
|
||||
elif self.ftype == TYPE_RAW:
|
||||
orig_data = data
|
||||
if self.compress == COMPRESS_LZ4:
|
||||
data = comp_util.compress(orig_data, 'lz4', with_header=False)
|
||||
data = comp_util.compress(orig_data, 'lz4')
|
||||
elif self.compress == COMPRESS_LZMA:
|
||||
data = comp_util.compress(orig_data, 'lzma', with_header=False)
|
||||
data = comp_util.compress(orig_data, 'lzma')
|
||||
self.memlen = len(orig_data)
|
||||
self.data_len = len(data)
|
||||
attr = struct.pack(ATTR_COMPRESSION_FORMAT,
|
||||
|
Reference in New Issue
Block a user