Skip to contentSkip to conversation

meson: send user to our wiki instead of Meson bug system

PATCH In review Ross Burton 2 participants 3 messages Jul 6, 2018 – Jul 7, 2018 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 meson: send user to our wiki instead of Meson bug system

If a CPU family isn't recognised the first step should be to verify the mapping. Send the user to a wiki page explaining what to do, instead of directly to the Meson bug tracker.

---
 meta/recipes-devtools/meson/meson/validate-cpu.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/meson/meson/validate-cpu.patch +2 -2
index 8bdb204ab04..e7dad00d47c 100644
@@ -100,7 +100,7 @@ index 091d92dc..67177c1f 100644
  
      if trial not in known_cpu_families:
 -        mlog.warning('Unknown CPU family %s, please report this at https://github.com/mesonbuild/meson/issues/new' % trial)
-+        raise EnvironmentException('Unknown CPU family %s, please report this at https://github.com/mesonbuild/meson/issues/new' % trial)
++        raise EnvironmentException('Unknown CPU family %s, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.' % trial)
  
      return trial
  
@@ -109,7 +109,7 @@ index 091d92dc..67177c1f 100644
  
                  if entry == 'cpu_family' and res not in known_cpu_families:
 -                    mlog.warning('Unknown CPU family %s, please report this at https://github.com/mesonbuild/meson/issues/new' % value)
-+                    raise EnvironmentException('Unknown CPU family %s, please report this at https://github.com/mesonbuild/meson/issues/new' % value)
++                    raise EnvironmentException('Unknown CPU family %s, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.' % value)
  
                  if self.ok_type(res):
                      self.config[s][entry] = res
Signature · 1 line
2.11.0
#1 lore raw

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.

---
 meta/classes/meson.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/meson.bbclass +2 -0
index 13a6f948756..0c9bf73596a 100644
@@ -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:
Signature · 1 line
2.11.0
#2 lore raw

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

Quoted 23 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ross Burton
Sent: den 6 juli 2018 16:51
To: [email protected]
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.

---
 meta/classes/meson.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/meson.bbclass +0 -0
index 13a6f948756..0c9bf73596a 100644

meta/classes/meson.bbclass def meson_cpu_family(var, d): · line 55

Quoted 4 lines
meta/classes/meson.bbclass +1 -0
@@ -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.

Quoted 6 lines
meta/classes/meson.bbclass +1 -1
+        return 'mips'
     elif re.match(r"i[3-6]86", arch):
         return "x86"
     else:
--

2.11.0

//Peter