summaryrefslogtreecommitdiffstats
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>2018-11-22 17:10:46 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-22 12:19:26 +0000
commit3df9ee85ce7fe52f0893fd33aea3bf1fcc6ead0a (patch)
treefee3b30f3d270678ecd7a57ca32b2032e748e9c6 /meta/classes/testimage.bbclass
parent815e05ac4abb42238d6fdeb15d7426759e059ce1 (diff)
downloadopenembedded-core-3df9ee85ce7fe52f0893fd33aea3bf1fcc6ead0a.tar.gz
testimage: Add support for slirp
Enable testimage to support qemu slirp. Configure "QEMU_USE_SLIRP" & "TEST_SERVER_IP" variables to enable slirp. [YOCTO#10713] Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 92e56862d4..82cbb068ed 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -236,6 +236,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,
@@ -247,6 +251,7 @@ def testimage_main(d):
'boottime' : boottime,
'bootlog' : bootlog,
'kvm' : kvm,
+ 'slirp' : slirp,
}
# TODO: Currently BBPATH is needed for custom loading of targets.