Re: [meta-oe][PATCH v2] image_types_sparse: switch ext* conversion to ext2simg_android

Ashish Mishra
2026-03-26T09:15:39Z

[-- Attachment #1: Type: text/plain, Size: 4125 bytes --]

Hi Gyorgy / Maintainers / Members,

I tried getting the android-tools in meta-oe and was able to get complete functionality tweaked accordingly
1) Should i send an RFC to move android-tools out from dynamic-layer to meta-oe seprately now?
2) I did below quick check locally :
a) Checked by running the native-binary on host
b) Also checked if selinux is linked to these binary using LDD , below are the log
- Is there any other check you want me to do before sharing the patch (or android-tools RFC as per suggestion )

If upstream accepts RFC to move android-tools from dynamic to meta-oe/recipes-devtool , i can rework the e2fsprogfs using PACKAGECONFIG
So effectively we will have:
meta-oe/recipes-devtools/e2fsprogs-ext4sparse/
meta-oe/recipes-devtools/android-tools/android-tools_29.0.6.r14.bb
meta-oe/classes/image_types_sparse.bbclass

Please feel
Thanks,
Ashish

Summary :-

* Able to compile the higher version of / *android-tools-native/29.0.6.r14* ** without selinux dependency
* Cross checked using ldd is selinux dependency in final binary

Logs :-

~/upstream-yocto/build/tmp/work/x86_64-linux/ *android-tools-native/29.0.6.r14/* image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin : ls
*adb  fastboot  img2simg  simg2img*
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin : *./fastboot --version*
*fastboot version -debian*
Installed as /home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin/fastboot
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin : *./img2simg --version*
*Usage: img2simg <raw_image_file> <sparse_image_file> [<block_size>]*
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin : *./simg2img --version*
*Usage: simg2img <sparse_image_files> <raw_image_file>*
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-to [0/1728] ve/29.0.6.r14/recipe-sysroot-native/usr/bin : *./adb --version*
*./adb: error while loading shared libraries: libbase.so.0: cannot open shared object file: No such file or directory*
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin : ls
adb  fastboot  img2simg  simg2img
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin : *ldd adb | grep selinux*
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin : *ldd fastboot | grep selinux*
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin : *ldd img2simg | grep selinux*
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin : *ldd simg2img | grep selinux*
~/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/image/home/ashish/upstream-yocto/build/tmp/work/x86_64-linux/android-tools-native/29.0.6.r14/recipe-sysroot-native/usr/bin :

[-- Attachment #2: Type: text/html, Size: 7653 bytes --]