mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
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. (From OE-Core rev: eaf2793a98cb27d82561da0f8993f2b4b304ecc2) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f866673f87
commit
7159b281e7
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user