commit | 04e8cd8642504e6932db1dcaf86e9e799a118096 | [log] [tgz] |
---|---|---|
author | Atish Patra <atish.patra@wdc.com> | Thu Mar 05 16:24:22 2020 -0800 |
committer | Tom Rini <trini@konsulko.com> | Fri Apr 17 12:32:36 2020 -0400 |
tree | 102854264876f6bbee25449bea7cbad36cd145a8 | |
parent | 1fa7962daaedda3bac6db351c23b39bacb39bc3c [diff] |
image: Add a common compression type detection function. Currently, there is no method that can detect compression types given a file. This is very useful where a compressed kernel image is loaded directly to the memory. Inspect initial few bytes to figure out compression type of the image. It will be used in booti method for now but can be reused any other function in future as well. Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Tom Rini <trini@konsulko.com>