summaryrefslogtreecommitdiffstats
path: root/meta/classes
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>2019-02-25 22:27:45 +0000
commit2e1b7400b295a9a15f3a54c572bdc1dfcf3c2fe8 (patch)
tree4511fa8b7a2ba3b127ce568c9a31acd1546e5a41 /meta/classes
parent3850b6021a7ba4352862be2dafd21eb21b60fb39 (diff)
downloadpoky-2e1b7400b295a9a15f3a54c572bdc1dfcf3c2fe8.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) (From OE-Core rev: 8bf8cbb82472a0547b62f94fafa5790cf67ff9cb) Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> 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.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 2dbd2dad77..7d148d7262 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -227,6 +227,10 @@ def testimage_main(d):
227 # Get use_kvm 227 # Get use_kvm
228 kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH')) 228 kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH'))
229 229
230 slirp = False
231 if d.getVar("QEMU_USE_SLIRP"):
232 slirp = True
233
230 # TODO: We use the current implementatin of qemu runner because of 234 # TODO: We use the current implementatin of qemu runner because of
231 # time constrains, qemu runner really needs a refactor too. 235 # time constrains, qemu runner really needs a refactor too.
232 target_kwargs = { 'machine' : machine, 236 target_kwargs = { 'machine' : machine,
@@ -238,6 +242,7 @@ def testimage_main(d):
238 'boottime' : boottime, 242 'boottime' : boottime,
239 'bootlog' : bootlog, 243 'bootlog' : bootlog,
240 'kvm' : kvm, 244 'kvm' : kvm,
245 'slirp' : slirp,
241 } 246 }
242 247
243 # TODO: Currently BBPATH is needed for custom loading of targets. 248 # TODO: Currently BBPATH is needed for custom loading of targets.