mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
utils/qemurunner.py: QemuRunner.start() add support for specify extra kernel cmdline
Add ability to specify extra_bootargs (kernel cmdline) in order to enable systemd debug log in images that enables systemd init. [YOCTO #9299] (From OE-Core rev: 09d62551c289b5607341a4f9c46eecd6390ad774) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e558b50afc
commit
ad6aaae4bf
@@ -174,8 +174,8 @@ class QemuTarget(BaseTarget):
|
|||||||
bb.note("Qemu log file: %s" % self.qemulog)
|
bb.note("Qemu log file: %s" % self.qemulog)
|
||||||
super(QemuTarget, self).deploy()
|
super(QemuTarget, self).deploy()
|
||||||
|
|
||||||
def start(self, params=None, ssh=True):
|
def start(self, params=None, ssh=True, extra_bootparams=None):
|
||||||
if self.runner.start(params, get_ip=ssh):
|
if self.runner.start(params, get_ip=ssh, extra_bootparams=extra_bootparams):
|
||||||
if ssh:
|
if ssh:
|
||||||
self.ip = self.runner.ip
|
self.ip = self.runner.ip
|
||||||
self.server_ip = self.runner.server_ip
|
self.server_ip = self.runner.server_ip
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class QemuRunner:
|
|||||||
self._dump_host()
|
self._dump_host()
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
def start(self, qemuparams = None, get_ip = True):
|
def start(self, qemuparams = None, get_ip = True, extra_bootparams = None):
|
||||||
if self.display:
|
if self.display:
|
||||||
os.environ["DISPLAY"] = self.display
|
os.environ["DISPLAY"] = self.display
|
||||||
# Set this flag so that Qemu doesn't do any grabs as SDL grabs
|
# Set this flag so that Qemu doesn't do any grabs as SDL grabs
|
||||||
@@ -120,7 +120,11 @@ class QemuRunner:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
self.qemuparams = 'bootparams="console=tty1 console=ttyS0,115200n8 printk.time=1" qemuparams="-serial tcp:127.0.0.1:{}"'.format(threadport)
|
bootparams = 'console=tty1 console=ttyS0,115200n8 printk.time=1'
|
||||||
|
if extra_bootparams:
|
||||||
|
bootparams = bootparams + ' ' + extra_bootparams
|
||||||
|
|
||||||
|
self.qemuparams = 'bootparams="{0}" qemuparams="-serial tcp:127.0.0.1:{1}"'.format(bootparams, threadport)
|
||||||
if not self.display:
|
if not self.display:
|
||||||
self.qemuparams = 'nographic ' + self.qemuparams
|
self.qemuparams = 'nographic ' + self.qemuparams
|
||||||
if qemuparams:
|
if qemuparams:
|
||||||
|
|||||||
Reference in New Issue
Block a user