]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: decouple bios and kernel options
authorMatthias Klein <matthias@extraklein.de>
Wed, 4 Aug 2021 08:53:55 +0000 (10:53 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Aug 2021 19:41:45 +0000 (20:41 +0100)
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>
scripts/runqemu

index 9c92eec030b7acbcf379cc0dd020390d77f1eac4..0976273eb07b4d0edd534d6440d893505771fe76 100755 (executable)
@@ -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)