diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-31 11:38:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 07:34:05 +0100 |
commit | c125ef12ae6c2ffdd11ce271e11d2a9a8cfcace4 (patch) | |
tree | 8f5644984eecafdf70108702d53bded7696b4d22 | |
parent | 7b56b2cf617ed3de3639347ca87b8f669ecaf2ae (diff) | |
download | poky-c125ef12ae6c2ffdd11ce271e11d2a9a8cfcace4.tar.gz |
cross-canadian/gcc: Various mips64 fixes
"n32" is a mips64 variant we need to consider when processing the TARGET_OS
extensions. Also add the multilib extensions for mips64.
(From OE-Core rev: fe26f809aaad5d5d608e841c99b817316c5a59a0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/cross-canadian.bbclass | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-multilib-config.inc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass index dca0b38d2b..80fb472b42 100644 --- a/meta/classes/cross-canadian.bbclass +++ b/meta/classes/cross-canadian.bbclass | |||
@@ -31,7 +31,7 @@ python () { | |||
31 | 31 | ||
32 | tos = d.getVar("TARGET_OS", True) | 32 | tos = d.getVar("TARGET_OS", True) |
33 | whitelist = [] | 33 | whitelist = [] |
34 | for variant in ["", "spe", "x32", "eabi"]: | 34 | for variant in ["", "spe", "x32", "eabi", "n32"]: |
35 | for libc in ["", "uclibc", "musl"]: | 35 | for libc in ["", "uclibc", "musl"]: |
36 | entry = "linux" | 36 | entry = "linux" |
37 | if variant and libc: | 37 | if variant and libc: |
@@ -62,6 +62,8 @@ python () { | |||
62 | d.setVar("LIBCEXTENSION", "") | 62 | d.setVar("LIBCEXTENSION", "") |
63 | d.setVar("ABIEXTENSION", "") | 63 | d.setVar("ABIEXTENSION", "") |
64 | d.appendVar("CANADIANEXTRAOS", " linux-gnuspe linux-uclibcspe linux-muslspe") | 64 | d.appendVar("CANADIANEXTRAOS", " linux-gnuspe linux-uclibcspe linux-muslspe") |
65 | elif tarch == "mips64": | ||
66 | d.appendVar("CANADIANEXTRAOS", " linux-gnun32 linux-uclibcn32 linux-musln32") | ||
65 | if tarch == "arm": | 67 | if tarch == "arm": |
66 | d.setVar("TARGET_OS", "linux-gnueabi") | 68 | d.setVar("TARGET_OS", "linux-gnueabi") |
67 | else: | 69 | else: |
diff --git a/meta/recipes-devtools/gcc/gcc-multilib-config.inc b/meta/recipes-devtools/gcc/gcc-multilib-config.inc index 67c33f8a96..cfad50fe1f 100644 --- a/meta/recipes-devtools/gcc/gcc-multilib-config.inc +++ b/meta/recipes-devtools/gcc/gcc-multilib-config.inc | |||
@@ -123,6 +123,7 @@ python gcc_multilib_setup() { | |||
123 | 'i586' : ['gcc/config/i386/t-linux64'], | 123 | 'i586' : ['gcc/config/i386/t-linux64'], |
124 | 'i686' : ['gcc/config/i386/t-linux64'], | 124 | 'i686' : ['gcc/config/i386/t-linux64'], |
125 | 'mips' : ['gcc/config/mips/t-linux64'], | 125 | 'mips' : ['gcc/config/mips/t-linux64'], |
126 | 'mips64' : ['gcc/config/mips/t-linux64'], | ||
126 | 'powerpc' : ['gcc/config/rs6000/t-linux64'], | 127 | 'powerpc' : ['gcc/config/rs6000/t-linux64'], |
127 | 'powerpc64' : ['gcc/config/rs6000/t-linux64'], | 128 | 'powerpc64' : ['gcc/config/rs6000/t-linux64'], |
128 | } | 129 | } |
@@ -132,6 +133,7 @@ python gcc_multilib_setup() { | |||
132 | 'i586' : ['gcc/config/i386/linux64.h'], | 133 | 'i586' : ['gcc/config/i386/linux64.h'], |
133 | 'i686' : ['gcc/config/i386/linux64.h'], | 134 | 'i686' : ['gcc/config/i386/linux64.h'], |
134 | 'mips' : ['gcc/config/mips/linux64.h'], | 135 | 'mips' : ['gcc/config/mips/linux64.h'], |
136 | 'mips64' : ['gcc/config/mips/linux64.h'], | ||
135 | 'powerpc' : ['gcc/config/rs6000/linux64.h'], | 137 | 'powerpc' : ['gcc/config/rs6000/linux64.h'], |
136 | 'powerpc64' : ['gcc/config/rs6000/linux64.h'], | 138 | 'powerpc64' : ['gcc/config/rs6000/linux64.h'], |
137 | } | 139 | } |