mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 12:32:12 +02:00
testimage: consider QB_DEFAULT_FSTYPE
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. (From OE-Core rev: aedb6bf9b6ccf37f69372642bc4c5dbbca92d0d9) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d6c4039e3f
commit
13aa3bea40
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user