diff options
Diffstat (limited to 'meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch')
-rw-r--r-- | meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch b/meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch index 0808891a27..98ca08c2ca 100644 --- a/meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch +++ b/meta/recipes-devtools/meson/meson/0001-Make-CPU-family-warnings-fatal.patch | |||
@@ -1,40 +1,43 @@ | |||
1 | From 76934bcbf2cfa7304e8864e28c51f58adda0392f Mon Sep 17 00:00:00 2001 | 1 | From c01e5e29953e0302988f2d60adc50ebfa0e5d670 Mon Sep 17 00:00:00 2001 |
2 | From: Ross Burton <ross.burton@intel.com> | 2 | From: Ross Burton <ross.burton@intel.com> |
3 | Date: Tue, 3 Jul 2018 13:59:09 +0100 | 3 | Date: Tue, 3 Jul 2018 13:59:09 +0100 |
4 | Subject: [PATCH] Make CPU family warnings fatal | 4 | Subject: [PATCH] Make CPU family warnings fatal |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [OE specific] | 6 | Upstream-Status: Inappropriate [OE specific] |
7 | Signed-off-by: Ross Burton <ross.burton@intel.com> | 7 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
8 | |||
9 | --- | 8 | --- |
10 | mesonbuild/envconfig.py | 2 +- | 9 | mesonbuild/envconfig.py | 4 ++-- |
11 | mesonbuild/environment.py | 4 +--- | 10 | mesonbuild/environment.py | 6 ++---- |
12 | 2 files changed, 2 insertions(+), 4 deletions(-) | 11 | 2 files changed, 4 insertions(+), 6 deletions(-) |
13 | 12 | ||
14 | diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py | 13 | diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py |
15 | index ba35d16..2d3c34c 100644 | 14 | index 43fad0c..27be871 100644 |
16 | --- a/mesonbuild/envconfig.py | 15 | --- a/mesonbuild/envconfig.py |
17 | +++ b/mesonbuild/envconfig.py | 16 | +++ b/mesonbuild/envconfig.py |
18 | @@ -262,7 +262,7 @@ class MachineInfo: | 17 | @@ -287,8 +287,8 @@ class MachineInfo(HoldableObject): |
18 | 'but is missing {}.'.format(minimum_literal - set(literal))) | ||
19 | 19 | ||
20 | cpu_family = literal['cpu_family'] | 20 | cpu_family = literal['cpu_family'] |
21 | if cpu_family not in known_cpu_families: | 21 | - if cpu_family not in known_cpu_families: |
22 | - mlog.warning('Unknown CPU family {}, please report this at https://github.com/mesonbuild/meson/issues/new'.format(cpu_family)) | 22 | - mlog.warning(f'Unknown CPU family {cpu_family}, please report this at https://github.com/mesonbuild/meson/issues/new') |
23 | + if cpu_family not in known_cpu_families and cpu_family != "riscv": | ||
23 | + raise EnvironmentException('Unknown CPU family {}, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.'.format(cpu_family)) | 24 | + raise EnvironmentException('Unknown CPU family {}, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.'.format(cpu_family)) |
24 | 25 | ||
25 | endian = literal['endian'] | 26 | endian = literal['endian'] |
26 | if endian not in ('little', 'big'): | 27 | if endian not in ('little', 'big'): |
27 | diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py | 28 | diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py |
28 | index 756dd81..4d2c2b6 100644 | 29 | index 2a9cf16..6b2bd6b 100644 |
29 | --- a/mesonbuild/environment.py | 30 | --- a/mesonbuild/environment.py |
30 | +++ b/mesonbuild/environment.py | 31 | +++ b/mesonbuild/environment.py |
31 | @@ -434,9 +434,7 @@ def detect_cpu_family(compilers: CompilersDict) -> str: | 32 | @@ -436,10 +436,8 @@ def detect_cpu_family(compilers: CompilersDict) -> str: |
32 | trial = 'ppc64' | 33 | if compilers and not any_compiler_has_define(compilers, '__mips64'): |
34 | trial = 'mips' | ||
33 | 35 | ||
34 | if trial not in known_cpu_families: | 36 | - if trial not in known_cpu_families: |
35 | - mlog.warning('Unknown CPU family {!r}, please report this at ' | 37 | - mlog.warning(f'Unknown CPU family {trial!r}, please report this at ' |
36 | - 'https://github.com/mesonbuild/meson/issues/new with the ' | 38 | - 'https://github.com/mesonbuild/meson/issues/new with the ' |
37 | - 'output of `uname -a` and `cat /proc/cpuinfo`'.format(trial)) | 39 | - 'output of `uname -a` and `cat /proc/cpuinfo`') |
40 | + if trial not in known_cpu_families and trail != "riscv": | ||
38 | + raise EnvironmentException('Unknown CPU family %s, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.' % trial) | 41 | + raise EnvironmentException('Unknown CPU family %s, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.' % trial) |
39 | 42 | ||
40 | return trial | 43 | return trial |