diff options
author | Alistair Francis <alistair.francis@xilinx.com> | 2017-11-21 16:43:56 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-02 11:24:38 +0000 |
commit | eaf2793a98cb27d82561da0f8993f2b4b304ecc2 (patch) | |
tree | 6245fa66659f1c0b7bcba6265317bb96756d1e39 /scripts/runqemu | |
parent | 0dbb860924fc157880b52d8e08bad3c6c6b019b8 (diff) | |
download | openembedded-core-eaf2793a98cb27d82561da0f8993f2b4b304ecc2.tar.gz openembedded-core-eaf2793a98cb27d82561da0f8993f2b4b304ecc2.tar.bz2 openembedded-core-eaf2793a98cb27d82561da0f8993f2b4b304ecc2.zip |
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@xilinx.com>
Cc: Ben Levinsky <ben.levinsky@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 9cdabe865b..01d831520a 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') |