]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: Allow the user to override the Kernel option
authorAlistair Francis <alistair.francis@xilinx.com>
Wed, 22 Nov 2017 00:43:56 +0000 (16:43 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 2 Dec 2017 11:24:38 +0000 (11:24 +0000)
Update the runqemu script to allow the user to specify a Kernel to boot
when calling runqemu.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Cc: Ben Levinsky <ben.levinsky@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/runqemu

index 9cdabe865b963b330ec754de84273fa6bd28f669..01d831520a1b23950dfbfdaced38aa95b264faa5 100755 (executable)
@@ -584,11 +584,15 @@ class BaseConfig(object):
         if self.fstype in self.vmtypes:
             return
 
+        # See if the user supplied a KERNEL option
+        if self.get('KERNEL'):
+            self.kernel = self.get('KERNEL')
+
         # QB_DEFAULT_KERNEL is always a full file path
         kernel_name = os.path.basename(self.get('QB_DEFAULT_KERNEL'))
 
         # The user didn't want a kernel to be loaded
-        if kernel_name == "none":
+        if kernel_name == "none" and not self.kernel:
             return
 
         deploy_dir_image = self.get('DEPLOY_DIR_IMAGE')