Skip to content
Commit 155d6a35 authored by Atish Patra's avatar Atish Patra Committed by Tom Rini
Browse files

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: default avatarAtish Patra <atish.patra@wdc.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 2a2119e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment