NetworkManager: fix cross gir patch for ppc64le target

This commit is contained in:
John 2019-11-27 21:44:03 +01:00
parent f20e10cd44
commit ea3114ae55
1 changed files with 6 additions and 3 deletions

View File

@ -11,19 +11,22 @@ Upstream: No, not upstreamable since this is very specific to the Void setup
)
test(
--- libnm/meson.build
+++ libnm/meson.build
@@ -244,7 +244,21 @@ if enable_introspection
--- libnm/meson.build 2019-11-27 21:35:56.964752550 +0100
+++ - 2019-11-27 21:40:25.516650233 +0100
@@ -244,7 +244,24 @@
)
endif
- generate_setting_docs = join_paths(meson.current_source_dir(), 'generate-setting-docs.py')
+ if meson.is_cross_build()
+ arch = host_machine.cpu_family()
+ endian = host_machine.endian()
+ if arch == 'x86'
+ qemu_arch = 'i386'
+ elif arch == 'x86_64'
+ qemu_arch = 'x86_64'
+ elif arch == 'ppc64' and endian == 'little'
+ qemu_arch = 'ppc64le'
+ else
+ qemu_arch = host_machine.cpu_family()
+ endif