mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
3850b6021a
commit
2e1b7400b2
@@ -227,6 +227,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,
|
||||
@@ -238,6 +242,7 @@ def testimage_main(d):
|
||||
'boottime' : boottime,
|
||||
'bootlog' : bootlog,
|
||||
'kvm' : kvm,
|
||||
'slirp' : slirp,
|
||||
}
|
||||
|
||||
# TODO: Currently BBPATH is needed for custom loading of targets.
|
||||
|
||||
Reference in New Issue
Block a user