mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-21 08:08:29 +00:00
image_types_sparse: switch ext* conversion to ext2simg_android
We have RFC discussion at https://lists.openembedded.org/g/openembedded-devel/message/124499 https://lists.openembedded.org/g/openembedded-devel/message/125497 Move ext* sparse image generation from 'img2simg' to ' ext2simg_android' Signed-off-by: AshishKumar Mishra <emailaddress.ashish@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 parent
bca525efeb
commit
be2b9e6c60
1 file changed
+13
-3
@@ -13,11 +13,21 @@ DELETE_RAWIMAGE_AFTER_SPARSE_CMD ??= "0"
|
|||||||
|
|
||||||
CONVERSION_CMD:sparse = " \
|
CONVERSION_CMD:sparse = " \
|
||||||
truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "${IMAGE_NAME}.${type}"; \
|
truncate --no-create --size=%${SPARSE_BLOCK_SIZE} "${IMAGE_NAME}.${type}"; \
|
||||||
img2simg -s "${IMAGE_NAME}.${type}" "${IMAGE_NAME}.${type}.sparse" ${SPARSE_BLOCK_SIZE}; \
|
case '${type}' in \
|
||||||
|
ext*) \
|
||||||
|
bbnote 'Running e2fsprogs-derived ext2simg_android..' ; \
|
||||||
|
ext2simg_android '${IMAGE_NAME}.${type}' '${IMAGE_NAME}.${type}.simg' || bberror 'ext2simg_android failed' \
|
||||||
|
;; \
|
||||||
|
*) \
|
||||||
|
bbnote 'Generating sparse image for non-ext filesystem...'; \
|
||||||
|
img2simg -s '${IMAGE_NAME}.${type}' '${IMAGE_NAME}.${type}.sparse' ${SPARSE_BLOCK_SIZE}; \
|
||||||
|
;; \
|
||||||
|
esac; \
|
||||||
if [ "${DELETE_RAWIMAGE_AFTER_SPARSE_CMD}" = "1" ]; then \
|
if [ "${DELETE_RAWIMAGE_AFTER_SPARSE_CMD}" = "1" ]; then \
|
||||||
rm -f ${IMAGE_NAME}.${type};\
|
rm -f ${IMAGE_NAME}.${type};\
|
||||||
bbwarn "Raw file ${IMAGE_NAME}.${type} removed" ;\
|
bbnote "Raw file ${IMAGE_NAME}.${type} removed" ;\
|
||||||
fi;\
|
fi;\
|
||||||
"
|
"
|
||||||
|
|
||||||
CONVERSION_DEPENDS_sparse = "android-tools-native"
|
CONVERSION_DEPENDS_sparse = "android-tools-native e2fsprogs-ext4sparse-native"
|
||||||
|
do_image_ext4[depends] += "e2fsprogs-ext4sparse-native:do_populate_sysroot"
|
||||||
Reference in new issue
Block a user