mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
goarch.bbclass: Fix ppc64le detection
ppc64le should go above ppc64 in checks otherwise it gets subsumed wrongly with ppc64 check (From OE-Core rev: 126ecfe0d2ce65b2d2cf5598612e60bad7b3302e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -47,7 +47,6 @@ COMPATIBLE_HOST_linux-gnux32 = "null"
|
|||||||
COMPATIBLE_HOST_linux-muslx32 = "null"
|
COMPATIBLE_HOST_linux-muslx32 = "null"
|
||||||
COMPATIBLE_HOST_powerpc = "null"
|
COMPATIBLE_HOST_powerpc = "null"
|
||||||
COMPATIBLE_HOST_powerpc64 = "null"
|
COMPATIBLE_HOST_powerpc64 = "null"
|
||||||
COMPATIBLE_HOST_powerpc64le = "null"
|
|
||||||
COMPATIBLE_HOST_mipsarchn32 = "null"
|
COMPATIBLE_HOST_mipsarchn32 = "null"
|
||||||
|
|
||||||
ARM_INSTRUCTION_SET_armv4 = "arm"
|
ARM_INSTRUCTION_SET_armv4 = "arm"
|
||||||
@@ -79,10 +78,10 @@ def go_map_arch(a, d):
|
|||||||
return 'mips'
|
return 'mips'
|
||||||
elif a == 'mipsel':
|
elif a == 'mipsel':
|
||||||
return 'mipsle'
|
return 'mipsle'
|
||||||
|
elif re.match('p(pc|owerpc)(64le)', a):
|
||||||
|
return 'ppc64le'
|
||||||
elif re.match('p(pc|owerpc)(64)', a):
|
elif re.match('p(pc|owerpc)(64)', a):
|
||||||
return 'ppc64'
|
return 'ppc64'
|
||||||
elif re.match('p(pc|owerpc)(64el)', a):
|
|
||||||
return 'ppc64le'
|
|
||||||
elif a == 'riscv64':
|
elif a == 'riscv64':
|
||||||
return 'riscv64'
|
return 'riscv64'
|
||||||
else:
|
else:
|
||||||
@@ -115,5 +114,3 @@ def go_map_os(o, d):
|
|||||||
if o.startswith('linux'):
|
if o.startswith('linux'):
|
||||||
return 'linux'
|
return 'linux'
|
||||||
return o
|
return o
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user