diff mbox series

[2/2] meson: map mipsel TARGET_ARCH to mips for the cross file

Message ID 20180706145116.30481-2-ross.burton@intel.com
State New
Headers show
Series [1/2] meson: send user to our wiki instead of Meson bug system | expand

Commit Message

Ross Burton July 6, 2018, 2:51 p.m. UTC
Meson uses 'mips' for both big- and little-endian MIPS machines, so map mipsel
to mips.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/classes/meson.bbclass | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Peter Kjellerstedt July 7, 2018, 1:02 p.m. UTC | #1
> -----Original Message-----

> From: openembedded-core-bounces@lists.openembedded.org

> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of

> Ross Burton

> Sent: den 6 juli 2018 16:51

> To: openembedded-core@lists.openembedded.org

> Subject: [OE-core] [PATCH 2/2] meson: map mipsel TARGET_ARCH to mips

> for the cross file

> 

> Meson uses 'mips' for both big- and little-endian MIPS machines, so map

> mipsel

> to mips.

> 

> Signed-off-by: Ross Burton <ross.burton@intel.com>

> ---

>  meta/classes/meson.bbclass | 2 ++

>  1 file changed, 2 insertions(+)

> 

> diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass

> index 13a6f948756..0c9bf73596a 100644

> --- a/meta/classes/meson.bbclass

> +++ b/meta/classes/meson.bbclass

> @@ -52,6 +52,8 @@ def meson_cpu_family(var, d):

>      arch = d.getVar(var)

>      if arch == 'powerpc':

>          return 'ppc'

> +    if arch == 'mipsel':


Change if to elif for consistency.

> +        return 'mips'

>      elif re.match(r"i[3-6]86", arch):

>          return "x86"

>      else:

> --

> 2.11.0


//Peter

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
index 13a6f948756..0c9bf73596a 100644
--- a/meta/classes/meson.bbclass
+++ b/meta/classes/meson.bbclass
@@ -52,6 +52,8 @@  def meson_cpu_family(var, d):
     arch = d.getVar(var)
     if arch == 'powerpc':
         return 'ppc'
+    if arch == 'mipsel':
+        return 'mips'
     elif re.match(r"i[3-6]86", arch):
         return "x86"
     else: