summaryrefslogtreecommitdiffstats
path: root/meta
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-23 23:35:18 +0000
commitfea124ae4441e0fdc8bebcc49c5b5594ca998b3a (patch)
tree004166da3e3369ad9d563f851d58227c14749e4b /meta
parent325ae1008c1ebe96a57965aa2e3129f536a9b64d (diff)
downloadpoky-fea124ae4441e0fdc8bebcc49c5b5594ca998b3a.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] (From OE-Core rev: 3df9ee85ce7fe52f0893fd33aea3bf1fcc6ead0a) Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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):
236 else: 236 else:
237 kvm = False 237 kvm = False
238 238
239 slirp = False
240 if d.getVar("QEMU_USE_SLIRP"):
241 slirp = True
242
239 # TODO: We use the current implementatin of qemu runner because of 243 # TODO: We use the current implementatin of qemu runner because of
240 # time constrains, qemu runner really needs a refactor too. 244 # time constrains, qemu runner really needs a refactor too.
241 target_kwargs = { 'machine' : machine, 245 target_kwargs = { 'machine' : machine,
@@ -247,6 +251,7 @@ def testimage_main(d):
247 'boottime' : boottime, 251 'boottime' : boottime,
248 'bootlog' : bootlog, 252 'bootlog' : bootlog,
249 'kvm' : kvm, 253 'kvm' : kvm,
254 'slirp' : slirp,
250 } 255 }
251 256
252 # TODO: Currently BBPATH is needed for custom loading of targets. 257 # TODO: Currently BBPATH is needed for custom loading of targets.