summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorRaju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>2022-06-15 18:40:24 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-17 17:57:44 +0100
commitbd879982fa551d8d16d1d9d5c5261085509ea926 (patch)
tree8036ea4e803b56f4b3bb8814b1d4092f5ade83aa /scripts/runqemu
parent3f4317436c321db07a6b2146c7a9295a43b3db6e (diff)
downloadpoky-bd879982fa551d8d16d1d9d5c5261085509ea926.tar.gz
runqemu: add QB_KERNEL_CMDLINE
runqemu auto generating the KERNEL_CMDLINE values and specifying using -append option to qemu boot command which will lead to override the kernel_cmdline/bootargs which are specified in DTB when using -dtb option. Add new macro QB_KERNEL_CMDLINE to specify not to add the runqemu generated KERNEL_CMDLINE values instead use which are in the DTB if value defined as 'none'. Add provision to override bootargs using # runqemu bootparams="root=/dev/ram0" (From OE-Core rev: 98f4bf980c378cc541b220d79ee006bf2fae9ae8) Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 6e1f073ed2..b4c1ae6d83 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1486,7 +1486,12 @@ class BaseConfig(object):
1486 def start_qemu(self): 1486 def start_qemu(self):
1487 import shlex 1487 import shlex
1488 if self.kernel: 1488 if self.kernel:
1489 kernel_opts = "-kernel %s -append '%s %s %s %s'" % (self.kernel, self.kernel_cmdline, 1489 kernel_opts = "-kernel %s" % (self.kernel)
1490 if self.get('QB_KERNEL_CMDLINE') == "none":
1491 if self.bootparams:
1492 kernel_opts += " -append '%s'" % (self.bootparams)
1493 else:
1494 kernel_opts += " -append '%s %s %s %s'" % (self.kernel_cmdline,
1490 self.kernel_cmdline_script, self.get('QB_KERNEL_CMDLINE_APPEND'), 1495 self.kernel_cmdline_script, self.get('QB_KERNEL_CMDLINE_APPEND'),
1491 self.bootparams) 1496 self.bootparams)
1492 if self.dtb: 1497 if self.dtb: