Skip to content
Snippets Groups Projects
Commit 2f83f219 authored by Jassi Brar's avatar Jassi Brar Committed by Tom Rini
Browse files

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: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent 32d3154e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment