Skip to contentSkip to conversation

image_types_sparse: use .sparse extension to create subimage link

PATCH New [email protected] 1 participant 1 message Sep 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image_types_sparse: use .sparse extension to create subimage link

If the image extension (.simg) does not match the CONVERSIONTYPE (sparse), the function create_symlinks() in oe-core image.bbclass fails to create the image link for this subimage.
Using the .sparse extension for images produced by the ext2simg_android tool fixes this and generates a usable image link.

---
 meta-oe/classes/image_types_sparse.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/classes/image_types_sparse.bbclass +1 -1
index 5c1d92bd18..b2a58b8757 100644
@@ -16,7 +16,7 @@ CONVERSION_CMD:sparse = " \
     case '${type}' in \
         ext*) \
             bbnote 'Running e2fsprogs-derived ext2simg_android..' ; \
-            ext2simg_android '${IMAGE_NAME}.${type}' '${IMAGE_NAME}.${type}.simg' || bberror 'ext2simg_android failed' \
+            ext2simg_android '${IMAGE_NAME}.${type}' '${IMAGE_NAME}.${type}.sparse' || bberror 'ext2simg_android failed' \
             ;; \
         *) \
             bbnote 'Generating sparse image for non-ext filesystem...'; \
Signature · 1 line
2.34.1