mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-01 00:23:29 +08:00
dm: Support lzma in the flashmap
Allow lzma compression as well as lz4. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4bbaa88fad
commit
504fb66997
@ -31,6 +31,8 @@ int ofnode_read_fmap_entry(ofnode node, struct fmap_entry *entry)
|
||||
if (prop) {
|
||||
if (!strcmp(prop, "lz4"))
|
||||
entry->compress_algo = FMAP_COMPRESS_LZ4;
|
||||
else if (!strcmp(prop, "lzma"))
|
||||
entry->compress_algo = FMAP_COMPRESS_LZMA;
|
||||
else
|
||||
return log_msg_ret("compression algo", -EINVAL);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user