libpayload: Implement new CBFS access API
This commit adds new CBFS API, which is based on the one available in the main coreboot source tree. Libpayload implementation supports RO/RW file lookups and file contents verification. Change-Id: I00da0658dbac0cddf92ad55611def947932d23c7 Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59497 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Felix Held
parent
1fa3da4d9b
commit
63e54275f6
@@ -242,7 +242,6 @@ void *cbfs_get_contents(struct cbfs_handle *handle, size_t *size, size_t limit)
|
||||
cbfs_get_attr(handle, CBFS_FILE_ATTR_TAG_COMPRESSION);
|
||||
if (comp) {
|
||||
algo = ntohl(comp->compression);
|
||||
DEBUG("File '%s' is compressed (alg=%d)\n", name, algo);
|
||||
*size = ntohl(comp->decompressed_size);
|
||||
/* TODO: Implement partial decompression with |limit| */
|
||||
}
|
||||
|
Reference in New Issue
Block a user