]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/runqemu: Fix memory limits for qemux86-64
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Mar 2022 13:35:00 +0000 (13:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Mar 2022 08:38:28 +0000 (08:38 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu

index 9ddd47267c9661d0dea046c8943c68b1394b4a79..2f77a7bd0f2cab5c5a8164eefa4b73dd11aed118 100755 (executable)
@@ -814,7 +814,7 @@ class BaseConfig(object):
         self.set('QB_MEM', qb_mem)
 
         mach = self.get('MACHINE')
-        if not mach.startswith('qemumips'):
+        if not mach.startswith(('qemumips', 'qemux86')):
             self.kernel_cmdline_script += ' mem=%s' % self.get('QB_MEM').replace('-m','').strip() + 'M'
 
         self.qemu_opt_script += ' %s' % self.get('QB_MEM')