diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-01-19 11:13:51 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-22 15:56:14 +0000 |
commit | 97b5b17cb1e589c592c505651608094ec33767cf (patch) | |
tree | 18d1dd0cd4f07e928fe202444f8fe22a4e96e3c1 /meta | |
parent | 9f225cf966b8a96775d74f41423206d157bce2e3 (diff) | |
download | poky-97b5b17cb1e589c592c505651608094ec33767cf.tar.gz |
qemu: Enable ppc64le support for qemu-usermode
glibc defines minimum kernel needed to be 3.10.0 for LE ppc64
(From OE-Core rev: c1c296a42920af6725706bdea8e61b8c4f5f14a8)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/qemu.bbclass | 3 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-targets.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass index f5c5780125..55bdff816b 100644 --- a/meta/classes/qemu.bbclass +++ b/meta/classes/qemu.bbclass | |||
@@ -16,6 +16,8 @@ def qemu_target_binary(data): | |||
16 | target_arch = "ppc" | 16 | target_arch = "ppc" |
17 | elif target_arch == "powerpc64": | 17 | elif target_arch == "powerpc64": |
18 | target_arch = "ppc64" | 18 | target_arch = "ppc64" |
19 | elif target_arch == "powerpc64le": | ||
20 | target_arch = "ppc64le" | ||
19 | 21 | ||
20 | return "qemu-" + target_arch | 22 | return "qemu-" + target_arch |
21 | 23 | ||
@@ -62,3 +64,4 @@ QEMU_EXTRAOPTIONS_ppc64e5500 = " -cpu e500mc" | |||
62 | QEMU_EXTRAOPTIONS_ppce6500 = " -cpu e500mc" | 64 | QEMU_EXTRAOPTIONS_ppce6500 = " -cpu e500mc" |
63 | QEMU_EXTRAOPTIONS_ppc64e6500 = " -cpu e500mc" | 65 | QEMU_EXTRAOPTIONS_ppc64e6500 = " -cpu e500mc" |
64 | QEMU_EXTRAOPTIONS_ppc7400 = " -cpu 7400" | 66 | QEMU_EXTRAOPTIONS_ppc7400 = " -cpu 7400" |
67 | QEMU_EXTRAOPTIONS_powerpc64le = " -cpu POWER8" | ||
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index ce89b80ade..2da7c5849a 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -430,6 +430,7 @@ SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}" | |||
430 | OLDEST_KERNEL = "3.2.0" | 430 | OLDEST_KERNEL = "3.2.0" |
431 | OLDEST_KERNEL_aarch64 = "3.14" | 431 | OLDEST_KERNEL_aarch64 = "3.14" |
432 | OLDEST_KERNEL_nios2 = "3.19" | 432 | OLDEST_KERNEL_nios2 = "3.19" |
433 | OLDEST_KERNEL_powerpc64le = "3.10.0" | ||
433 | OLDEST_KERNEL_riscv32 = "4.15" | 434 | OLDEST_KERNEL_riscv32 = "4.15" |
434 | OLDEST_KERNEL_riscv64 = "4.15" | 435 | OLDEST_KERNEL_riscv64 = "4.15" |
435 | 436 | ||
diff --git a/meta/recipes-devtools/qemu/qemu-targets.inc b/meta/recipes-devtools/qemu/qemu-targets.inc index 8184ef5781..24f9a03948 100644 --- a/meta/recipes-devtools/qemu/qemu-targets.inc +++ b/meta/recipes-devtools/qemu/qemu-targets.inc | |||
@@ -13,7 +13,7 @@ def get_qemu_target_list(d): | |||
13 | softmmuonly += arch + "-softmmu," | 13 | softmmuonly += arch + "-softmmu," |
14 | archs.remove(arch) | 14 | archs.remove(arch) |
15 | linuxuseronly = "" | 15 | linuxuseronly = "" |
16 | for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus', 'aarch64_be']: | 16 | for arch in ['armeb', 'alpha', 'ppc64abi32', 'ppc64le', 'sparc32plus', 'aarch64_be']: |
17 | if arch in archs: | 17 | if arch in archs: |
18 | linuxuseronly += arch + "-linux-user," | 18 | linuxuseronly += arch + "-linux-user," |
19 | archs.remove(arch) | 19 | archs.remove(arch) |
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index dff5762b80..eb9f060997 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -59,7 +59,7 @@ do_install_ptest() { | |||
59 | } | 59 | } |
60 | 60 | ||
61 | # QEMU_TARGETS is overridable variable | 61 | # QEMU_TARGETS is overridable variable |
62 | QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc ppc64 riscv32 riscv64 sh4 x86_64" | 62 | QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc ppc64 ppc64le riscv32 riscv64 sh4 x86_64" |
63 | 63 | ||
64 | EXTRA_OECONF = " \ | 64 | EXTRA_OECONF = " \ |
65 | --prefix=${prefix} \ | 65 | --prefix=${prefix} \ |