binman: Update CheckEntries() for compressed sections
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:23 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
commitb004bf3906e6f80b80558424e4a3ed8767103e37
tree970fe3890bdfc2d2f07fb506690bde6c517f83e3
parent0b65769c2e31ae7b3ee6015b1f7602e4e1ac56a6
binman: Update CheckEntries() for compressed sections

At present this function assumes that the size of a section is at least as
large as its contents. With compression this is often not the case. Relax
this constraint by using the uncompressed size, if available.

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