]> code.ossystems Code Review - openembedded-core.git/commitdiff
meson.bbclass: avoid unexpected operating-system names
authorAndreas M?ller <schnitzeltony@gmail.com>
Wed, 15 Apr 2020 22:30:36 +0000 (00:30 +0200)
committerSteve Sakoman <steve@sakoman.com>
Tue, 23 Jun 2020 14:33:47 +0000 (04:33 -1000)
For example 'linux-gnueabi' is not what meson consumers expect: See canonical
table of OS names for Meson (thanks Ross). Surprisingly this did not pop up
earlier but wrong system-name can break building as described in [1]

[1] https://lists.openembedded.org/g/openembedded-core/topic/meson_host_machine_system/73023862

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 010202076760329829fbde8dab4f535d6f755873)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/meson.bbclass

index e9628033c685cb903c897213094de956ca448f4a..ff52d20e56e56078bfc784cb2bb8be209908937f 100644 (file)
@@ -68,6 +68,9 @@ def meson_operating_system(var, d):
     os = d.getVar(var)
     if "mingw" in os:
         return "windows"
+    # avoid e.g 'linux-gnueabi'
+    elif "linux" in os:
+        return "linux"
     else:
         return os