diff options
author | Matthias Klein <matthias@extraklein.de> | 2021-08-04 10:53:55 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-04 20:45:41 +0100 |
commit | f83a4482a933ce4b586d81129c8a3f1ed2e263f9 (patch) | |
tree | f012bffefceb85ffd750e0d95890ea2f6d4df2bb /scripts | |
parent | 6d90c0e47a28647909bbe4c303e61e33952e0894 (diff) | |
download | poky-f83a4482a933ce4b586d81129c8a3f1ed2e263f9.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).
(From OE-Core rev: 5fc65c9d18679b62b13fead7b91126c665525884)
Signed-off-by: Matthias Klein <matthias@extraklein.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 6 |
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): | |||
1443 | kernel_opts = "-kernel %s -append '%s %s %s %s'" % (self.kernel, self.kernel_cmdline, | 1443 | kernel_opts = "-kernel %s -append '%s %s %s %s'" % (self.kernel, self.kernel_cmdline, |
1444 | self.kernel_cmdline_script, self.get('QB_KERNEL_CMDLINE_APPEND'), | 1444 | self.kernel_cmdline_script, self.get('QB_KERNEL_CMDLINE_APPEND'), |
1445 | self.bootparams) | 1445 | self.bootparams) |
1446 | if self.bios: | ||
1447 | kernel_opts += " -bios %s" % self.bios | ||
1448 | if self.dtb: | 1446 | if self.dtb: |
1449 | kernel_opts += " -dtb %s" % self.dtb | 1447 | kernel_opts += " -dtb %s" % self.dtb |
1450 | else: | 1448 | else: |
1451 | kernel_opts = "" | 1449 | kernel_opts = "" |
1450 | |||
1451 | if self.bios: | ||
1452 | self.qemu_opt += " -bios %s" % self.bios | ||
1453 | |||
1452 | cmd = "%s %s" % (self.qemu_opt, kernel_opts) | 1454 | cmd = "%s %s" % (self.qemu_opt, kernel_opts) |
1453 | cmds = shlex.split(cmd) | 1455 | cmds = shlex.split(cmd) |
1454 | logger.info('Running %s\n' % cmd) | 1456 | logger.info('Running %s\n' % cmd) |