mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
meson.bbclass: avoid unexpected operating-system names
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 (From OE-Core rev: e48425a7e80283cde95886e26f17cd687bb98468) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ea688fb506
commit
6a994a1930
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user