[U-Boot] [PATCH v2 33/37] binman: Add a utility library for coreboot CBFS
sjg at google.com
sjg at google.com
Thu Jul 18 01:59:10 UTC 2019
Coreboot uses a simple flash-based filesystem called Coreboot Filesystem
(CBFS) to organise files used during boot. This allows files to be named
and their position in the flash to be set. It has special features for
dealing with x86 devices which typically memory-map their SPI flash to the
top of 32-bit address space and need a 'boot block' ending there.
Create a library to help create and read CBFS files. This includes a
writer class, a reader class and associated other helpers. Only a subset
of features are currently supported.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- Deal with travis's old lz4 version by skipping tests as necessary
- Install lzma tool in travis
- Skip use of cbfstool in tests if it is not available
.travis.yml | 1 +
tools/binman/binman.py | 4 +-
tools/binman/cbfs_util.py | 720 +++++++++++++++++++++++++++++++++
tools/binman/cbfs_util_test.py | 540 +++++++++++++++++++++++++
4 files changed, 1264 insertions(+), 1 deletion(-)
create mode 100644 tools/binman/cbfs_util.py
create mode 100755 tools/binman/cbfs_util_test.py
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list