summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2023-02-21 15:44:44 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-23 12:11:29 +0000
commit9e0145df7a9d18b97edc617d1321dc361648bb04 (patch)
tree65e50e5e4829bdf4c99435bd1ff3e9865f26923e /meta/conf/machine
parent84f3d39dd24c8a814cf974aa390ffa558421eebd (diff)
downloadpoky-9e0145df7a9d18b97edc617d1321dc361648bb04.tar.gz
QB_SMP: allow user modification
Allow a user to override the QM_SMP value giving them the opportunity to select for themselves the number of CPUs to use in qemu. (From OE-Core rev: 70a91e6d0357149c00b97f7e66e16cbc52997a92) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine')
-rw-r--r--meta/conf/machine/include/riscv/qemuriscv.inc2
-rw-r--r--meta/conf/machine/include/x86/qemuboot-x86.inc2
-rw-r--r--meta/conf/machine/qemuarm.conf2
-rw-r--r--meta/conf/machine/qemuarm64.conf2
-rw-r--r--meta/conf/machine/qemuppc64.conf2
5 files changed, 5 insertions, 5 deletions
diff --git a/meta/conf/machine/include/riscv/qemuriscv.inc b/meta/conf/machine/include/riscv/qemuriscv.inc
index 1d32b4a582..c977a266ca 100644
--- a/meta/conf/machine/include/riscv/qemuriscv.inc
+++ b/meta/conf/machine/include/riscv/qemuriscv.inc
@@ -26,7 +26,7 @@ UBOOT_ENTRYPOINT:riscv32 = "0x80400000"
26UBOOT_ENTRYPOINT:riscv64 = "0x80200000" 26UBOOT_ENTRYPOINT:riscv64 = "0x80200000"
27 27
28# qemuboot options 28# qemuboot options
29QB_SMP = "-smp 4" 29QB_SMP ?= "-smp 4"
30QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi" 30QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
31QB_MACHINE = "-machine virt" 31QB_MACHINE = "-machine virt"
32QB_DEFAULT_BIOS = "fw_jump.elf" 32QB_DEFAULT_BIOS = "fw_jump.elf"
diff --git a/meta/conf/machine/include/x86/qemuboot-x86.inc b/meta/conf/machine/include/x86/qemuboot-x86.inc
index 3953679366..dd7e7c9384 100644
--- a/meta/conf/machine/include/x86/qemuboot-x86.inc
+++ b/meta/conf/machine/include/x86/qemuboot-x86.inc
@@ -1,6 +1,6 @@
1# For runqemu 1# For runqemu
2IMAGE_CLASSES += "qemuboot" 2IMAGE_CLASSES += "qemuboot"
3QB_SMP = "-smp 4" 3QB_SMP ?= "-smp 4"
4QB_CPU:x86 = "-cpu IvyBridge -machine q35,i8042=off" 4QB_CPU:x86 = "-cpu IvyBridge -machine q35,i8042=off"
5QB_CPU_KVM:x86 = "-cpu IvyBridge -machine q35,i8042=off" 5QB_CPU_KVM:x86 = "-cpu IvyBridge -machine q35,i8042=off"
6 6
diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf
index 1bd4e3e154..c5234231e2 100644
--- a/meta/conf/machine/qemuarm.conf
+++ b/meta/conf/machine/qemuarm.conf
@@ -16,7 +16,7 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
16QB_SYSTEM_NAME = "qemu-system-arm" 16QB_SYSTEM_NAME = "qemu-system-arm"
17QB_MACHINE = "-machine virt,highmem=off" 17QB_MACHINE = "-machine virt,highmem=off"
18QB_CPU = "-cpu cortex-a15" 18QB_CPU = "-cpu cortex-a15"
19QB_SMP = "-smp 4" 19QB_SMP ?= "-smp 4"
20# Standard Serial console 20# Standard Serial console
21QB_KERNEL_CMDLINE_APPEND = "vmalloc=256" 21QB_KERNEL_CMDLINE_APPEND = "vmalloc=256"
22# 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 ffc51c803f..2f0f0e4f84 100644
--- a/meta/conf/machine/qemuarm64.conf
+++ b/meta/conf/machine/qemuarm64.conf
@@ -16,7 +16,7 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
16QB_SYSTEM_NAME = "qemu-system-aarch64" 16QB_SYSTEM_NAME = "qemu-system-aarch64"
17QB_MACHINE = "-machine virt" 17QB_MACHINE = "-machine virt"
18QB_CPU = "-cpu cortex-a57" 18QB_CPU = "-cpu cortex-a57"
19QB_SMP = "-smp 4" 19QB_SMP ?= "-smp 4"
20QB_CPU_KVM = "-cpu host -machine gic-version=3" 20QB_CPU_KVM = "-cpu host -machine gic-version=3"
21# 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
22QB_GRAPHICS = "-device virtio-gpu-pci" 22QB_GRAPHICS = "-device virtio-gpu-pci"
diff --git a/meta/conf/machine/qemuppc64.conf b/meta/conf/machine/qemuppc64.conf
index 7709339313..2fbd26a6f9 100644
--- a/meta/conf/machine/qemuppc64.conf
+++ b/meta/conf/machine/qemuppc64.conf
@@ -13,7 +13,7 @@ SERIAL_CONSOLES ?= "115200;hvc0"
13QB_SYSTEM_NAME = "qemu-system-ppc64" 13QB_SYSTEM_NAME = "qemu-system-ppc64"
14QB_MACHINE = "-machine pseries" 14QB_MACHINE = "-machine pseries"
15QB_CPU = "-cpu POWER9" 15QB_CPU = "-cpu POWER9"
16QB_SMP = "-smp 2" 16QB_SMP ?= "-smp 2"
17 17
18QB_NFSROOTFS_EXTRA_OPT = "wsize=524288,rsize=524288" 18QB_NFSROOTFS_EXTRA_OPT = "wsize=524288,rsize=524288"
19QB_KERNEL_CMDLINE_APPEND = "console=hvc0 nohugevmalloc" 19QB_KERNEL_CMDLINE_APPEND = "console=hvc0 nohugevmalloc"