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-02-06 16:38:30 +0000 |
commit | c4d64997238d89b395fcaa0abb412e0673ab8873 (patch) | |
tree | 5720d8f54db0ccebec4afdcf8cbf33cfc60cd2da /meta/classes | |
parent | 8660ae3df69397cadcb1cf47d1caf99329e1f4d9 (diff) | |
download | poky-c4d64997238d89b395fcaa0abb412e0673ab8873.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: ab4989123d8a6c2dc8e058110c495320955bf0de)
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.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): | |||
230 | # Get use_kvm | 230 | # Get use_kvm |
231 | kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH')) | 231 | kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH')) |
232 | 232 | ||
233 | slirp = False | ||
234 | if d.getVar("QEMU_USE_SLIRP"): | ||
235 | slirp = True | ||
236 | |||
233 | # TODO: We use the current implementatin of qemu runner because of | 237 | # TODO: We use the current implementatin of qemu runner because of |
234 | # time constrains, qemu runner really needs a refactor too. | 238 | # time constrains, qemu runner really needs a refactor too. |
235 | target_kwargs = { 'machine' : machine, | 239 | target_kwargs = { 'machine' : machine, |
@@ -241,6 +245,7 @@ def testimage_main(d): | |||
241 | 'boottime' : boottime, | 245 | 'boottime' : boottime, |
242 | 'bootlog' : bootlog, | 246 | 'bootlog' : bootlog, |
243 | 'kvm' : kvm, | 247 | 'kvm' : kvm, |
248 | 'slirp' : slirp, | ||
244 | } | 249 | } |
245 | 250 | ||
246 | # TODO: Currently BBPATH is needed for custom loading of targets. | 251 | # TODO: Currently BBPATH is needed for custom loading of targets. |