binman: Move CompressData() into Entry base class
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:06 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
commit87c962943aec7aef8849c60f018a5e7756e5b7ba
treede355960330dbb712f69c0ad675c4bc0724699e6
parente6bed4f1812c1666eeab794694c4b3765f41c143
binman: Move CompressData() into Entry base class

At present this is only used by blobs. To allow it to be used by other
entry types (such as sections), move it into the base class.

Also read the compression type in the base class.

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