]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Add logging for the number of pack passes
authorSimon Glass <sjg@chromium.org>
Sat, 24 Aug 2019 13:23:13 +0000 (07:23 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
Sometimes binman takes multiple passes to complete packing an image. Add
logging to indicate this.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/control.py

index fe24b2a6a73ff6c88b2987c669ec3d84a42d21d8..68ad5fc2c0c4d098ddcf430d77be8b21dbe23668 100644 (file)
@@ -442,6 +442,7 @@ def ProcessImage(image, update_fdt, write_map, get_contents=True,
         if sizes_ok:
             break
         image.ResetForPack()
+    tout.Info('Pack completed after %d pass(es)' % (pack_pass + 1))
     if not sizes_ok:
         image.Raise('Entries changed size after packing (tried %s passes)' %
                     passes)