diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-08 10:42:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-13 18:09:10 +0100 |
commit | 34e1bea0e846b88200e933c96a539fb440dec4df (patch) | |
tree | 0453c3b071897b78ebb234fac8fdcb871db94385 /meta/conf | |
parent | 1584108bdcd4083d7ee753048b68248da13782f6 (diff) | |
download | poky-34e1bea0e846b88200e933c96a539fb440dec4df.tar.gz |
qemu: Set SMP to 4 cpus for arm/x86 only
Only qemux86* and qemuarm* support SMP with our current configurations so
rework qemu SMP enabling to account for that and only use it on the architectures
where it works.
(From OE-Core rev: ee371325ce651cc113e43bdeb5d8986d5b84a3f4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/machine/include/qemuboot-x86.inc | 1 | ||||
-rw-r--r-- | meta/conf/machine/qemuarm.conf | 1 | ||||
-rw-r--r-- | meta/conf/machine/qemuarm64.conf | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/meta/conf/machine/include/qemuboot-x86.inc b/meta/conf/machine/include/qemuboot-x86.inc index 2a4760c717..9b1e1c4975 100644 --- a/meta/conf/machine/include/qemuboot-x86.inc +++ b/meta/conf/machine/include/qemuboot-x86.inc | |||
@@ -1,5 +1,6 @@ | |||
1 | # For runqemu | 1 | # For runqemu |
2 | IMAGE_CLASSES += "qemuboot" | 2 | IMAGE_CLASSES += "qemuboot" |
3 | QB_SMP = "-smp 4" | ||
3 | QB_CPU_x86 = "-cpu core2duo" | 4 | QB_CPU_x86 = "-cpu core2duo" |
4 | QB_CPU_KVM_x86 = "-cpu core2duo" | 5 | QB_CPU_KVM_x86 = "-cpu core2duo" |
5 | 6 | ||
diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf index e5ec4cc065..34fcde698c 100644 --- a/meta/conf/machine/qemuarm.conf +++ b/meta/conf/machine/qemuarm.conf | |||
@@ -16,6 +16,7 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | |||
16 | QB_SYSTEM_NAME = "qemu-system-arm" | 16 | QB_SYSTEM_NAME = "qemu-system-arm" |
17 | QB_MACHINE = "-machine virt,highmem=off" | 17 | QB_MACHINE = "-machine virt,highmem=off" |
18 | QB_CPU = "-cpu cortex-a15" | 18 | QB_CPU = "-cpu cortex-a15" |
19 | QB_SMP = "-smp 4" | ||
19 | # Standard Serial console | 20 | # Standard Serial console |
20 | QB_KERNEL_CMDLINE_APPEND = "vmalloc=256" | 21 | QB_KERNEL_CMDLINE_APPEND = "vmalloc=256" |
21 | # For graphics to work we need to define the VGA device as well as the necessary USB devices | 22 | # For graphics to work we need to define the VGA device as well as the necessary USB devices |
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf index 51f7ecdcfd..150a0744eb 100644 --- a/meta/conf/machine/qemuarm64.conf +++ b/meta/conf/machine/qemuarm64.conf | |||
@@ -16,6 +16,7 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | |||
16 | QB_SYSTEM_NAME = "qemu-system-aarch64" | 16 | QB_SYSTEM_NAME = "qemu-system-aarch64" |
17 | QB_MACHINE = "-machine virt" | 17 | QB_MACHINE = "-machine virt" |
18 | QB_CPU = "-cpu cortex-a57" | 18 | QB_CPU = "-cpu cortex-a57" |
19 | QB_SMP = "-smp 4" | ||
19 | QB_CPU_KVM = "-cpu host -machine gic-version=3" | 20 | QB_CPU_KVM = "-cpu host -machine gic-version=3" |
20 | # For graphics to work we need to define the VGA device as well as the necessary USB devices | 21 | # For graphics to work we need to define the VGA device as well as the necessary USB devices |
21 | QB_GRAPHICS = "-device VGA,edid=on" | 22 | QB_GRAPHICS = "-device VGA,edid=on" |