提交 504fb669 编写于 作者: S Simon Glass

dm: Support lzma in the flashmap

Allow lzma compression as well as lz4.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 4bbaa88f
...@@ -31,6 +31,8 @@ int ofnode_read_fmap_entry(ofnode node, struct fmap_entry *entry) ...@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册