diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-14 13:35:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-22 16:12:17 +0100 |
commit | 4337b18725aa0ef96e7b1962c95ca54b48e8bc28 (patch) | |
tree | 117a7ec98e0e632822c81b01c5828449dd2277c1 | |
parent | eff78b3802ffa7a0bff4c839752b147712da63ac (diff) | |
download | poky-4337b18725aa0ef96e7b1962c95ca54b48e8bc28.tar.gz |
scripts/runqemu: Fix memory limits for qemux86-64
When setting memory to 4GB, qemu is only running with 2GB for x86_64.
Avoid this by removing the mem= option to the kernel and letting the
qemu configuration handle it for x86 in a similar way to mips.
(From OE-Core rev: ad7a8bf827a24f195df55a5d49e3ace949b6e23e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2fd53417eba354c31c058c4bb066bb882e098add)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/runqemu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 66e035c9af..1663fd829d 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -805,7 +805,7 @@ class BaseConfig(object): | |||
805 | self.set('QB_MEM', qb_mem) | 805 | self.set('QB_MEM', qb_mem) |
806 | 806 | ||
807 | mach = self.get('MACHINE') | 807 | mach = self.get('MACHINE') |
808 | if not mach.startswith('qemumips'): | 808 | if not mach.startswith(('qemumips', 'qemux86')): |
809 | self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M' | 809 | self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M' |
810 | 810 | ||
811 | self.qemu_opt_script += ' %s' % self.get('QB_MEM') | 811 | self.qemu_opt_script += ' %s' % self.get('QB_MEM') |