binman: Use 'files-compress' to set compression for files
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:07 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
commit9248c8d9c9674d705216e51161c1f0f473fc7fa3
treeca3eb2b7b303a8449e63911b9711c6c5a8ed2e76
parent87c962943aec7aef8849c60f018a5e7756e5b7ba
binman: Use 'files-compress' to set compression for files

At present we use 'compress' as the property to set the compression of
a 'files' entry. But this conflicts with the same property for entries,
of which Entry_section is a subclass.

Strictly speaking, since Entry_files is in fact a subclass of
Entry_section, the files can be compressed individually but also the
section (that contains all the files) can itself be compressed. With this
change, it is possible to express that.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/README.entries
tools/binman/etype/files.py
tools/binman/etype/section.py
tools/binman/test/085_files_compress.dts