binman: Allow writing a map file when something goes wrong
authorSimon Glass <sjg@chromium.org>
Fri, 14 Sep 2018 10:57:36 +0000 (04:57 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 29 Sep 2018 17:49:35 +0000 (11:49 -0600)
commit163ed6c342cfd15b623a46f3755203c712374a9a
tree5de0842cb24244db853f5253f84b865a8668206a
parentfe1ae3ecc3a2203babd7837bd2d5cf514a374c1f
binman: Allow writing a map file when something goes wrong

When we get a problem like overlapping regions it is sometimes hard to
figure what what is going on. At present we don't write the map file in
this case. However the file does provide useful information.

Catch any packing errors and write a map file (if enabled with -m) to aid
debugging.

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