On Wed, 2023-11-15 at 00:04 +0300, Dmitry Baryshkov wrote: > Android-targeted devices support so called sparse image format. This is > the raw filesystem image with dropped zero blocks. This way the image > takes less space and the bootloaders and/or filesystem manipulation > tools can flash it quicker (as they do not have to write useless > sequences of zeroes). > > Add new image conversion type called 'sparse'to be able to generate > filesystem images in the sparse format. > > Signed-off-by: Dmitry Baryshkov <[email protected]> > --- > meta/classes-recipe/image_types.bbclass | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/meta/classes-recipe/image_types.bbclass > b/meta/classes-recipe/image_types.bbclass > index d615b41ed1ed..d0c9514b36a3 100644 > --- a/meta/classes-recipe/image_types.bbclass > +++ b/meta/classes-recipe/image_types.bbclass > @@ -328,7 +328,7 @@ IMAGE_TYPES:append:x86-64 = " hddimg iso" > # CONVERSION_CMD/DEPENDS. > COMPRESSIONTYPES ?= "" > > -CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip 7zip zst sum md5sum sha1sum > sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vhd vhdx vdi qcow2 > base64 gzsync zsync ${COMPRESSIONTYPES}" > +CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip 7zip zst sum md5sum sha1sum > sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vhd vhdx vdi qcow2 > base64 gzsync zsync sparse ${COMPRESSIONTYPES}" > CONVERSION_CMD:lzma = "lzma -k -f -7 ${IMAGE_NAME}.${type}" > CONVERSION_CMD:gz = "gzip -f -9 -n -c --rsyncable ${IMAGE_NAME}.${type} > > ${IMAGE_NAME}.${type}.gz" > CONVERSION_CMD:bz2 = "pbzip2 -f -k ${IMAGE_NAME}.${type}"
I think we may need to be more specific about what kind of "sparse" image this is, maybe "android-sparse" ? Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#190803): https://lists.openembedded.org/g/openembedded-core/message/190803 Mute This Topic: https://lists.openembedded.org/mt/102592509/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
