binman: Allow reading an entry from an image
authorSimon Glass <sjg@chromium.org>
Mon, 8 Jul 2019 20:25:50 +0000 (14:25 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 24 Jul 2019 19:54:08 +0000 (12:54 -0700)
commitf667e45b1c0a7f21d433ee8f3ec18858d87dd2e5
treeae849665f80553e7689976d578e90250545f5423
parenteea264ead3ca198ed66f62a78dc4940075621ae7
binman: Allow reading an entry from an image

It is useful to be able to extract entry contents from an image to see
what is inside. Add a simple function to read the contents of an entry,
decompressing it by default.

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