[oe-commits] [openembedded-core] 39/44: runqemu: Allow the user to override the Kernel option

git at git.openembedded.org git at git.openembedded.org
Sat Dec 2 11:27:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit eaf2793a98cb27d82561da0f8993f2b4b304ecc2
Author: Alistair Francis <alistair.francis at xilinx.com>
AuthorDate: Tue Nov 21 16:43:56 2017 -0800

    runqemu: Allow the user to override the Kernel option
    
    Update the runqemu script to allow the user to specify a Kernel to boot
    when calling runqemu.
    
    Signed-off-by: Alistair Francis <alistair.francis at xilinx.com>
    Cc: Ben Levinsky <ben.levinsky at xilinx.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/runqemu | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 9cdabe8..01d8315 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -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')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list