projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bbaa88
)
dm: Support lzma in the flashmap
author
Simon Glass
<sjg@chromium.org>
Mon, 5 Jul 2021 22:32:40 +0000
(16:32 -0600)
committer
Simon Glass
<sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000
(10:27 -0600)
Allow lzma compression as well as lz4.
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/of_extra.c
patch
|
blob
|
history
diff --git
a/drivers/core/of_extra.c
b/drivers/core/of_extra.c
index 7702beff97b09991e5864f9716d1b0120e122a94..632a1c2210e8e426bd65b766e9514146bbca743d 100644
(file)
--- a/
drivers/core/of_extra.c
+++ b/
drivers/core/of_extra.c
@@
-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 {