summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-14 13:35:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-15 08:40:09 +0000
commitd38868cfff2f4be2bc9e44951b01785b142d91e4 (patch)
treea7f6c8384e2bf1b126a488252e0d1195f9259cf7 /scripts/runqemu
parentc41e58279a13b3c2fe0dbba4ba39510fe593d582 (diff)
downloadpoky-d38868cfff2f4be2bc9e44951b01785b142d91e4.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: 2fd53417eba354c31c058c4bb066bb882e098add) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 9ddd47267c..2f77a7bd0f 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -814,7 +814,7 @@ class BaseConfig(object):
814 self.set('QB_MEM', qb_mem) 814 self.set('QB_MEM', qb_mem)
815 815
816 mach = self.get('MACHINE') 816 mach = self.get('MACHINE')
817 if not mach.startswith('qemumips'): 817 if not mach.startswith(('qemumips', 'qemux86')):
818 self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M' 818 self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M'
819 819
820 self.qemu_opt_script += ' %s' % self.get('QB_MEM') 820 self.qemu_opt_script += ' %s' % self.get('QB_MEM')