diff options
author | Changqing Li <changqing.li@windriver.com> | 2019-08-06 10:18:48 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-07 16:08:15 +0100 |
commit | 060e7db0c4988e762fe874070af6c8ad8562822d (patch) | |
tree | afaf7708b3070c42f5c9d8e003efd52d19d93d1b | |
parent | 83201d04f15b2e2219767730d3b7a94c32af2dd3 (diff) | |
download | poky-060e7db0c4988e762fe874070af6c8ad8562822d.tar.gz |
qemuboot-x86: move QB_SYSTEM_NAME to corresponding conf
Configrations:
MACHINE: qemux86-64
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
Reproduce steps:
bitbake lib32-core-image-minimal
runqemu qemux86-64 nographic lib32-core-image-minimal
Errors:
qemu cannot bootup since:
Booting from ROM...
This kernel requires an x86-64 CPU, but only detected an i686 CPU.
Unable to boot - please use a kernel appropriate for your CPU.
QEMU: Terminated
For lib32 image, override has x86, so the qemubin set to qemu-system-i386,
fix by move QB_SYSTEM_NAME to corresponding conf, don't use the override
(From OE-Core rev: ffaf86f175b2e6caa3a0067f7b3725930b053715)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/conf/machine/include/qemuboot-x86.inc | 2 | ||||
-rw-r--r-- | meta/conf/machine/qemux86-64.conf | 3 | ||||
-rw-r--r-- | meta/conf/machine/qemux86.conf | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/meta/conf/machine/include/qemuboot-x86.inc b/meta/conf/machine/include/qemuboot-x86.inc index 82ce46d860..3931b0f0fb 100644 --- a/meta/conf/machine/include/qemuboot-x86.inc +++ b/meta/conf/machine/include/qemuboot-x86.inc | |||
@@ -1,10 +1,8 @@ | |||
1 | # For runqemu | 1 | # For runqemu |
2 | IMAGE_CLASSES += "qemuboot" | 2 | IMAGE_CLASSES += "qemuboot" |
3 | QB_SYSTEM_NAME_x86 = "qemu-system-i386" | ||
4 | QB_CPU_x86 = "-cpu core2duo" | 3 | QB_CPU_x86 = "-cpu core2duo" |
5 | QB_CPU_KVM_x86 = "-cpu core2duo" | 4 | QB_CPU_KVM_x86 = "-cpu core2duo" |
6 | 5 | ||
7 | QB_SYSTEM_NAME_x86-64 = "qemu-system-x86_64" | ||
8 | QB_CPU_x86-64 = "-cpu core2duo" | 6 | QB_CPU_x86-64 = "-cpu core2duo" |
9 | QB_CPU_KVM_x86-64 = "-cpu core2duo" | 7 | QB_CPU_KVM_x86-64 = "-cpu core2duo" |
10 | 8 | ||
diff --git a/meta/conf/machine/qemux86-64.conf b/meta/conf/machine/qemux86-64.conf index 383e3bd6f3..4b50e664e4 100644 --- a/meta/conf/machine/qemux86-64.conf +++ b/meta/conf/machine/qemux86-64.conf | |||
@@ -39,3 +39,6 @@ module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}" | |||
39 | 39 | ||
40 | WKS_FILE ?= "qemux86-directdisk.wks" | 40 | WKS_FILE ?= "qemux86-directdisk.wks" |
41 | do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" | 41 | do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" |
42 | |||
43 | #For runqemu | ||
44 | QB_SYSTEM_NAME = "qemu-system-x86_64" | ||
diff --git a/meta/conf/machine/qemux86.conf b/meta/conf/machine/qemux86.conf index 272ad1e187..3832302f07 100644 --- a/meta/conf/machine/qemux86.conf +++ b/meta/conf/machine/qemux86.conf | |||
@@ -39,3 +39,6 @@ module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}" | |||
39 | 39 | ||
40 | WKS_FILE ?= "qemux86-directdisk.wks" | 40 | WKS_FILE ?= "qemux86-directdisk.wks" |
41 | do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" | 41 | do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" |
42 | |||
43 | #For runqemu | ||
44 | QB_SYSTEM_NAME = "qemu-system-i386" | ||