diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2019-01-02 10:08:13 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:27:45 +0000 |
commit | 75bcf06098905a30aac56865c276780fee92a32b (patch) | |
tree | 32abe9b4b8e26e5503a30ef0b7f21acf270c631c /meta/classes | |
parent | 33504386a32b95bc25c32715564fbb8d12fcdf30 (diff) | |
download | poky-75bcf06098905a30aac56865c276780fee92a32b.tar.gz |
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)
(From OE-Core rev: 05896e2f83ffef5262ccd3a0fa20b81b2a878957)
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/testimage.bbclass | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index e01ceedf61..d77f8e6862 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -198,12 +198,13 @@ def testimage_main(d): | |||
198 | machine = d.getVar("MACHINE") | 198 | machine = d.getVar("MACHINE") |
199 | 199 | ||
200 | # Get rootfs | 200 | # Get rootfs |
201 | fstypes = [fs for fs in d.getVar('IMAGE_FSTYPES').split(' ') | 201 | fstypes = d.getVar('IMAGE_FSTYPES').split() |
202 | if fs in supported_fstypes] | 202 | if d.getVar("TEST_TARGET") == "qemu": |
203 | if not fstypes: | 203 | fstypes = [fs for fs in fstypes if fs in supported_fstypes] |
204 | bb.fatal('Unsupported image type built. Add a comptible image to ' | 204 | if not fstypes: |
205 | 'IMAGE_FSTYPES. Supported types: %s' % | 205 | bb.fatal('Unsupported image type built. Add a comptible image to ' |
206 | ', '.join(supported_fstypes)) | 206 | 'IMAGE_FSTYPES. Supported types: %s' % |
207 | ', '.join(supported_fstypes)) | ||
207 | rootfs = '%s.%s' % (image_name, fstypes[0]) | 208 | rootfs = '%s.%s' % (image_name, fstypes[0]) |
208 | 209 | ||
209 | # Get tmpdir (not really used, just for compatibility) | 210 | # Get tmpdir (not really used, just for compatibility) |