mirror of
https://xff.cz/git/u-boot/
synced 2025-09-17 08:32:07 +02:00
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
@@ -1112,12 +1112,12 @@ features to produce new behaviours.
|
||||
indata: Data to compress
|
||||
|
||||
Returns:
|
||||
Compressed data (first word is the compressed size)
|
||||
Compressed data
|
||||
"""
|
||||
self.uncomp_data = indata
|
||||
if self.compress != 'none':
|
||||
self.uncomp_size = len(indata)
|
||||
data = comp_util.compress(indata, self.compress, with_header=False)
|
||||
data = comp_util.compress(indata, self.compress)
|
||||
return data
|
||||
|
||||
def DecompressData(self, indata):
|
||||
@@ -1129,7 +1129,7 @@ features to produce new behaviours.
|
||||
Returns:
|
||||
Decompressed data
|
||||
"""
|
||||
data = comp_util.decompress(indata, self.compress, with_header=False)
|
||||
data = comp_util.decompress(indata, self.compress)
|
||||
if self.compress != 'none':
|
||||
self.uncomp_size = len(data)
|
||||
self.uncomp_data = data
|
||||
|
Reference in New Issue
Block a user