boot: Support compressed booti images in bootm
authorSimon Glass <sjg@chromium.org>
Thu, 6 Mar 2025 00:25:11 +0000 (17:25 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 19:12:15 +0000 (13:12 -0600)
commitecd50bb4643c9052e5f8b6171ab6c3905ed0ca70
tree1136f6906118e2ea376800ac08a566bbf440f2e8
parentd6bb0ea535e4384ed1975ee9c755488f5036a79e
boot: Support compressed booti images in bootm

A compressed booti image relies on the compression-format's header at
the start to indicate which compression algorithm is used.

We don't support this elsewhere in U-Boot, so assume that a compressed
file is always a booti file. Once it is compressed, a check is made to
make sure that it actually is.

Simplify the implementation by adding a new function which returns the
booti image-type if compression is detected.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootm.c
boot/image-board.c
include/image.h