[OE-core] [PATCH 4/4] testimage: Add support for slirp
Yeoh Ee Peng
ee.peng.yeoh at intel.com
Tue Nov 13 09:32:57 UTC 2018
Enable testimage to support qemu slirp. Configure
"QEMU_USE_SLIRP" variable to enable slirp.
[YOCTO#10713]
Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh at intel.com>
---
meta/classes/testimage.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index ba2d9c4..2f6a21b 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -256,6 +256,10 @@ def testimage_main(d):
else:
kvm = False
+ slirp = False
+ if d.getVar("QEMU_USE_SLIRP"):
+ slirp = True
+
# TODO: We use the current implementatin of qemu runner because of
# time constrains, qemu runner really needs a refactor too.
target_kwargs = { 'machine' : machine,
@@ -267,6 +271,7 @@ def testimage_main(d):
'boottime' : boottime,
'bootlog' : bootlog,
'kvm' : kvm,
+ 'slirp' : slirp,
}
# TODO: Currently BBPATH is needed for custom loading of targets.
--
2.7.4
More information about the Openembedded-core
mailing list