]> code.ossystems Code Review - openembedded-core.git/commitdiff
testimage: consider QB_DEFAULT_FSTYPE
authorAdrian Freihofer <adrian.freihofer@siemens.com>
Sat, 8 Jun 2019 07:59:46 +0000 (09:59 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Jun 2019 15:01:36 +0000 (16:01 +0100)
testimage.bbclass starts qemu with the first image type found in
the IMAGE_FSTYPES list. It's weird: this ['wic', 'tar'] works but
this ['tar'. 'wic'] does not. If QB_DEFAULT_FSTYPE is defined,
this fstype is booted.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/testimage.bbclass

index 9bb5a5cb0ba24a1fc582e7f4a2e17dd91510f304..525c5a61735f2c06495406fe8673ce3839965d69 100644 (file)
@@ -210,7 +210,11 @@ def testimage_main(d):
             bb.fatal('Unsupported image type built. Add a comptible image to '
                      'IMAGE_FSTYPES. Supported types: %s' %
                      ', '.join(supported_fstypes))
-    rootfs = '%s.%s' % (image_name, fstypes[0])
+    qfstype = fstypes[0]
+    qdeffstype = d.getVar("QB_DEFAULT_FSTYPE")
+    if qdeffstype:
+        qfstype = qdeffstype
+    rootfs = '%s.%s' % (image_name, qfstype)
 
     # Get tmpdir (not really used, just for compatibility)
     tmpdir = d.getVar("TMPDIR")