binman: Update entry.SetOffsetSize to be optional
authorSimon Glass <sjg@chromium.org>
Mon, 8 Jul 2019 19:18:39 +0000 (13:18 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 24 Jul 2019 03:27:57 +0000 (20:27 -0700)
commitcf54904a99ae06e5b38fb670b09dfa60fe1855d5
treee5de5abfa75e4de6188300c1e029e3d162b97c4e
parentfa1c93783274dd27da9a88d9d1bf3933f5631b12
binman: Update entry.SetOffsetSize to be optional

At present this function always sets both the offset and the size of
entries. But in some cases we want to set only one or the other, for
example with the forthcoming ifwi entry, where we only set the offset.
Update the function to handle this.

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