common: Move bootm_decomp_image() to image.c (as image_decomp())
authorJulius Werner <jwerner@chromium.org>
Thu, 25 Jul 2019 02:37:54 +0000 (19:37 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jul 2019 13:30:42 +0000 (09:30 -0400)
commit2090854cd2f228bab546f2718ccdbe1664830d3c
tree6b87d8e181377b3f9a0e6af8c0a14d5197ffe584
parent75551c8bfc9545e31ec2ce238cac3857904007b8
common: Move bootm_decomp_image() to image.c (as image_decomp())

Upcoming patches want to add decompression to use cases that are no
longer directly related to booting. It makes sense to retain a single
decompression routine, but it should no longer be in bootm.c (which is
not compiled for all configurations). This patch moves
bootm_decomp_image() to image.c and renames it to image_decomp() in
preparation of those upcoming patches.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
[trini: Fix warning around handle_decomp_error being unused]
Signed-off-by: Tom Rini <trini@konsulko.com>
common/bootm.c
common/image.c
include/bootm.h
include/image.h
test/compression.c