diff options
author | Yeoh Ee Peng <ee.peng.yeoh@intel.com> | 2018-11-22 17:10:46 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-28 16:56:30 +0000 |
commit | ab4989123d8a6c2dc8e058110c495320955bf0de (patch) | |
tree | d693418934df7c1ffc99b856ee58fcdc5b028be1 /meta | |
parent | 1da4c2e18e0897b3dc24d0d54b5d949bec39c990 (diff) | |
download | openembedded-core-ab4989123d8a6c2dc8e058110c495320955bf0de.tar.gz openembedded-core-ab4989123d8a6c2dc8e058110c495320955bf0de.tar.bz2 openembedded-core-ab4989123d8a6c2dc8e058110c495320955bf0de.zip |
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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/testimage.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 1f42f6a768..67d8b9ca8d 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -230,6 +230,10 @@ def testimage_main(d): # Get use_kvm kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH')) + 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, @@ -241,6 +245,7 @@ def testimage_main(d): 'boottime' : boottime, 'bootlog' : bootlog, 'kvm' : kvm, + 'slirp' : slirp, } # TODO: Currently BBPATH is needed for custom loading of targets. |