mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02: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) Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
325ae1008c
commit
fea124ae44
|
@ -236,6 +236,10 @@ def testimage_main(d):
|
|||
else:
|
||||
kvm = False
|
||||
|
||||
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,
|
||||
|
@ -247,6 +251,7 @@ def testimage_main(d):
|
|||
'boottime' : boottime,
|
||||
'bootlog' : bootlog,
|
||||
'kvm' : kvm,
|
||||
'slirp' : slirp,
|
||||
}
|
||||
|
||||
# TODO: Currently BBPATH is needed for custom loading of targets.
|
||||
|
|
Loading…
Reference in New Issue
Block a user