summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-13 10:13:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-08-15 08:15:25 +0100
commit911532040a9a085ee98bb2b5f1ea84d978bcf746 (patch)
tree74879dce8f9153533243f263b01801e3028a9081 /meta/recipes-devtools/gcc
parent8a9cbf62d35356608908439116df5f26f228f23c (diff)
downloadpoky-911532040a9a085ee98bb2b5f1ea84d978bcf746.tar.gz
gcc-testsuite: Fix qemu binary filtering code logic error
This code doesn't do what it first might appear to, it would for example remove 'm' characters from the left side of qemu-mips leaving 'ips'. Fix it to stop anyone else being confused by the subtle logic error. (From OE-Core rev: 888a7edf1c611eaf99eaf10a072ecc82cb386735) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-testsuite.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc b/meta/recipes-devtools/gcc/gcc-testsuite.inc
index 64f60c730f..a8299fa7ae 100644
--- a/meta/recipes-devtools/gcc/gcc-testsuite.inc
+++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc
@@ -51,9 +51,9 @@ python check_prepare() {
51 # enable all valid instructions, since the test suite itself does not 51 # enable all valid instructions, since the test suite itself does not
52 # limit itself to the target cpu options. 52 # limit itself to the target cpu options.
53 # - valid for x86*, powerpc, arm, arm64 53 # - valid for x86*, powerpc, arm, arm64
54 if qemu_binary.lstrip("qemu-") in ["x86_64", "i386", "arm", "aarch64"]: 54 if qemu_binary.endswith(("x86_64", "i386", "arm", "aarch64")):
55 args += ["-cpu", "max"] 55 args += ["-cpu", "max"]
56 elif qemu_binary.lstrip("qemu-") in ["ppc"]: 56 elif qemu_binary.endswith(("ppc")):
57 args += d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')).split() 57 args += d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')).split()
58 sysroot = d.getVar("RECIPE_SYSROOT") 58 sysroot = d.getVar("RECIPE_SYSROOT")
59 args += ["-L", sysroot] 59 args += ["-L", sysroot]