On Thu, Oct 12, 2017 at 4:32 PM, Alistair Francis
<[email protected]> wrote:
> Update the runqemu script to allow the user to specify a Kernel to boot
> when calling runqemu.
>
> Signed-off-by: Alistair Francis <[email protected]>
> Cc: Ben Levinsky <[email protected]>
Ping!
> ---
> scripts/runqemu | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/runqemu b/scripts/runqemu
> index df76270904..c3719a86f7 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')
> --
> 2.11.0
>
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core