summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Funke <[email protected]>2023-07-18 13:53:10 +0200
committerSimon Glass <[email protected]>2023-07-24 09:34:10 -0600
commit7a52a45e3a20eb3a8b763ea2f820498b713576d1 (patch)
tree5c779fe954aa067e50bd5717f041381d1d2d88c3
parent289e6007cf30ea7947b226a37c45f47159eb67b1 (diff)
binman: Don't decompress data while signing
While signing a fit compressed data (i.e. 'blob-ext') is decompressed, but never compressed again. When compressed data was wrapped in a section, decompression leads to an error because the outer section had the original compressed size but the inner entry has the uncompressed size now. While singing there is no reason to decompress data. Thus, decompression should be disabled. Furthermore, bintools should be collected before loading the data. This way bintools are available if processing is required on a node. Signed-off-by: Lukas Funke <[email protected]> Reviewed-by: Simon Glass <[email protected]>
-rw-r--r--tools/binman/control.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index 25e66814837..d1ee1d69a98 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -308,8 +308,8 @@ def BeforeReplace(image, allow_resize):
image: Image to prepare
"""
state.PrepareFromLoadedData(image)
- image.LoadData()
image.CollectBintools()
+ image.LoadData(decomp=False)
# If repacking, drop the old offset/size values except for the original
# ones, so we are only left with the constraints.