]> git.sur5r.net Git - u-boot/commit
fastboot: sparse: make write_sparse_image useable for non-fastboot
authorJassi Brar <jaswinder.singh@linaro.org>
Fri, 6 Apr 2018 06:35:09 +0000 (12:05 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 8 May 2018 00:57:51 +0000 (20:57 -0400)
commit2f83f219bfd42bc6ac54689cf4189bd239ed41fe
tree0ae20b4263858f12c70f4f7712b3a4eafb8d72fd
parent32d3154e5c9fe396cd78e30af64b7f26523a04b5
fastboot: sparse: make write_sparse_image useable for non-fastboot

write_sparse_image could be useful for non-fastboot users.
For ex a platform, without usb-device/fastboot support, could
get sparse images over tftp and write using the mmc command.
Or non-android systems could also leverage the sparse format.

Towards that, this patch removes anything fastboot specific from
the write_sparse_image implementation. Which includes making the
function return integer as error code and calls for fastboot logging
via an optional callback function 'mssg'.

Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
common/fb_mmc.c
common/fb_nand.c
common/image-sparse.c
include/image-sparse.h