mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
meta/classes/testimage.bbclass: Only validate IMAGE_FSTYPES when is QEMU
When use simpleremote target the flash/boot process is executed manually, the IMAGE_FSTYPES validation is only needed when execute testimage against qemu. The supported_fstypes comes from oeqa.core.target.qemu module. (From OE-Core rev: e7dc5963adbacc091fe8943119262166977623ad) Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bb67d1eb52
commit
fed984dc8e
@@ -201,12 +201,13 @@ def testimage_main(d):
|
|||||||
machine = d.getVar("MACHINE")
|
machine = d.getVar("MACHINE")
|
||||||
|
|
||||||
# Get rootfs
|
# Get rootfs
|
||||||
fstypes = [fs for fs in d.getVar('IMAGE_FSTYPES').split(' ')
|
fstypes = d.getVar('IMAGE_FSTYPES').split()
|
||||||
if fs in supported_fstypes]
|
if d.getVar("TEST_TARGET") == "qemu":
|
||||||
if not fstypes:
|
fstypes = [fs for fs in fstypes if fs in supported_fstypes]
|
||||||
bb.fatal('Unsupported image type built. Add a comptible image to '
|
if not fstypes:
|
||||||
'IMAGE_FSTYPES. Supported types: %s' %
|
bb.fatal('Unsupported image type built. Add a comptible image to '
|
||||||
', '.join(supported_fstypes))
|
'IMAGE_FSTYPES. Supported types: %s' %
|
||||||
|
', '.join(supported_fstypes))
|
||||||
rootfs = '%s.%s' % (image_name, fstypes[0])
|
rootfs = '%s.%s' % (image_name, fstypes[0])
|
||||||
|
|
||||||
# Get tmpdir (not really used, just for compatibility)
|
# Get tmpdir (not really used, just for compatibility)
|
||||||
|
|||||||
Reference in New Issue
Block a user