summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatthias Klein <matthias@extraklein.de>2021-08-04 10:53:55 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-04 20:41:45 +0100
commit5fc65c9d18679b62b13fead7b91126c665525884 (patch)
treea9dae3d00796b0eb0fe6ecb8c0e146c625f94214 /scripts
parent5cc0051d50974e198313f9513b24fd7ae9a96dd4 (diff)
downloadopenembedded-core-5fc65c9d18679b62b13fead7b91126c665525884.tar.gz
runqemu: decouple bios and kernel options
This will allow the use of a bios (e.g. U-Boot) in combination with a WIC file (from which U-Boot loads the kernel). Signed-off-by: Matthias Klein <matthias@extraklein.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 9c92eec030..0976273eb0 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1443,12 +1443,14 @@ class BaseConfig(object):
kernel_opts = "-kernel %s -append '%s %s %s %s'" % (self.kernel, self.kernel_cmdline,
self.kernel_cmdline_script, self.get('QB_KERNEL_CMDLINE_APPEND'),
self.bootparams)
- if self.bios:
- kernel_opts += " -bios %s" % self.bios
if self.dtb:
kernel_opts += " -dtb %s" % self.dtb
else:
kernel_opts = ""
+
+ if self.bios:
+ self.qemu_opt += " -bios %s" % self.bios
+
cmd = "%s %s" % (self.qemu_opt, kernel_opts)
cmds = shlex.split(cmd)
logger.info('Running %s\n' % cmd)