0001-Make-CPU-family-warnings-fatal.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 9311844b6c422479556e83b89a8e675ebcb2056c Mon Sep 17 00:00:00 2001
  2. From: Ross Burton <ross.burton@intel.com>
  3. Date: Tue, 3 Jul 2018 13:59:09 +0100
  4. Subject: [PATCH] Make CPU family warnings fatal
  5. Upstream-Status: Inappropriate [OE specific]
  6. Signed-off-by: Ross Burton <ross.burton@intel.com>
  7. ---
  8. mesonbuild/envconfig.py | 2 +-
  9. mesonbuild/environment.py | 4 +---
  10. 2 files changed, 2 insertions(+), 4 deletions(-)
  11. diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
  12. index 219b62e..d1be65b 100644
  13. --- a/mesonbuild/envconfig.py
  14. +++ b/mesonbuild/envconfig.py
  15. @@ -199,7 +199,7 @@ class MachineInfo:
  16. cpu_family = literal['cpu_family']
  17. if cpu_family not in known_cpu_families:
  18. - mlog.warning('Unknown CPU family {}, please report this at https://github.com/mesonbuild/meson/issues/new'.format(cpu_family))
  19. + raise EnvironmentException('Unknown CPU family {}, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.'.format(cpu_family))
  20. endian = literal['endian']
  21. if endian not in ('little', 'big'):
  22. diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
  23. index bf09a88..8eabe78 100644
  24. --- a/mesonbuild/environment.py
  25. +++ b/mesonbuild/environment.py
  26. @@ -375,9 +375,7 @@ def detect_cpu_family(compilers: CompilersDict) -> str:
  27. trial = 'parisc'
  28. if trial not in known_cpu_families:
  29. - mlog.warning('Unknown CPU family {!r}, please report this at '
  30. - 'https://github.com/mesonbuild/meson/issues/new with the '
  31. - 'output of `uname -a` and `cat /proc/cpuinfo`'.format(trial))
  32. + raise EnvironmentException('Unknown CPU family %s, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.' % trial)
  33. return trial