mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00: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
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ int ofnode_read_fmap_entry(ofnode node, struct fmap_entry *entry)
|
||||||
if (prop) {
|
if (prop) {
|
||||||
if (!strcmp(prop, "lz4"))
|
if (!strcmp(prop, "lz4"))
|
||||||
entry->compress_algo = FMAP_COMPRESS_LZ4;
|
entry->compress_algo = FMAP_COMPRESS_LZ4;
|
||||||
|
else if (!strcmp(prop, "lzma"))
|
||||||
|
entry->compress_algo = FMAP_COMPRESS_LZMA;
|
||||||
else
|
else
|
||||||
return log_msg_ret("compression algo", -EINVAL);
|
return log_msg_ret("compression algo", -EINVAL);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue