[OE-core] [PATCH] scripts/runqemu: fix qemumips qemumips64 memory detection kernel panic
Richard Purdie
richard.purdie at linuxfoundation.org
Fri Jul 6 13:14:29 UTC 2018
On Fri, 2018-07-06 at 02:44 -0700, He Zhe wrote:
> diff --git a/scripts/runqemu b/scripts/runqemu
> index 597e7e9a799..a0c556b8728 100755
> --- a/scripts/runqemu
> +++ b/scripts/runqemu
> @@ -669,7 +669,7 @@ class BaseConfig(object):
> self.set('QB_MEM', '-m 512')
>
> mach = self.get('MACHINE')
> - if mach != 'qemumips':
> + if mach != 'qemumips' and mach != 'qemumips64' and mach != 'qemumipsel' and mach != 'qemumips64el':
> self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M'
>
> self.qemu_opt_script += ' %s' % self.get('QB_MEM')
Could we not just do:
if not mach.startswith('qemumips'):
?
Cheers,
Richard
More information about the Openembedded-core
mailing list