diff options
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r-- | tools/binman/control.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py index d4c8dc89201..ce57dc7efc7 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -299,10 +299,11 @@ def BeforeReplace(image, allow_resize): """ state.PrepareFromLoadedData(image) image.LoadData() + image.CollectBintools() # If repacking, drop the old offset/size values except for the original # ones, so we are only left with the constraints. - if allow_resize: + if image.allow_repack and allow_resize: image.ResetForPack() |