binman: Remember the pre-reset entry size
authorSimon Glass <sjg@chromium.org>
Thu, 31 Oct 2019 13:43:02 +0000 (07:43 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Nov 2019 01:15:32 +0000 (18:15 -0700)
commit9a5d3dcff7894a24e493e6ae52d289d190d3ccdf
tree6a8d009f7c11b99c571102b5373fb0f1b61b691f
parent97de532e59be97281aabc327e93939550881e2ea
binman: Remember the pre-reset entry size

When preparing to possible expand or contract an entry we reset the size
to the original value from the binman device-tree definition, which is
often None.

This causes binman to forget the original size of the entry. Remember this
so that it can be used when needed.

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