diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-12-04 08:13:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-06 11:09:52 +0000 |
commit | 40349dc51f097f75b486d81924753dee06baf017 (patch) | |
tree | 4212562253d317488e8e509ba157c1a9003cb517 /meta/recipes-devtools | |
parent | a9ad0c267ee25e824bf80e73368c3164d0f0321e (diff) | |
download | poky-40349dc51f097f75b486d81924753dee06baf017.tar.gz |
meson: configure and use generic exe_wrapper
This replaces the specific gtkdoc wrapper setting
(which was rejected by upstream in https://github.com/mesonbuild/meson/pull/9627)
with a generic, officially supported and documented exe_wrapper,
which is enabled subject to qemu usermode support
(just as is done for g-i and gtk-doc with autotools).
gtk-doc support is adjusted so that this wrapper is passed to
meson's gtk-doc module, which passes it to gtk-doc.
The adjusted patch is re-submitted upstream.
The side effect of this is that meson is now able to run
target binaries in a generic way when it wants to, so this
may affect cross-builds - hopefully in a positive way.
(From OE-Core rev: 17fb047282a413aae5af991ecf5bbb225e19581e)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/meson/meson/0001-gtkdoc-fix-issues-that-arise-when-cross-compiling.patch | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/meta/recipes-devtools/meson/meson/0001-gtkdoc-fix-issues-that-arise-when-cross-compiling.patch b/meta/recipes-devtools/meson/meson/0001-gtkdoc-fix-issues-that-arise-when-cross-compiling.patch index ab4d5969d9..b098c4a123 100644 --- a/meta/recipes-devtools/meson/meson/0001-gtkdoc-fix-issues-that-arise-when-cross-compiling.patch +++ b/meta/recipes-devtools/meson/meson/0001-gtkdoc-fix-issues-that-arise-when-cross-compiling.patch | |||
@@ -1,29 +1,38 @@ | |||
1 | From 2f9c59e0489e569c5382404667c10f5c200a72ad Mon Sep 17 00:00:00 2001 | 1 | From bbdd6679e49bcba5ec022b240ac234a87b451e41 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 4 Aug 2017 16:16:41 +0300 | 3 | Date: Fri, 4 Aug 2017 16:16:41 +0300 |
4 | Subject: [PATCH] gtkdoc: fix issues that arise when cross-compiling | 4 | Subject: [PATCH] gtkdoc: add support for a binary wrapper |
5 | 5 | ||
6 | Make it possible to specify a wrapper for executing binaries | 6 | Make it possible to specify a wrapper for executing binaries |
7 | in cross-compiling scenarios. | ||
7 | (usually, some kind of target hardware emulator, such as qemu) | 8 | (usually, some kind of target hardware emulator, such as qemu) |
8 | 9 | ||
9 | Upstream-Status: Submitted [https://github.com/mesonbuild/meson/pull/9627] | 10 | Upstream-Status: Submitted [https://github.com/mesonbuild/meson/pull/9627] |
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
11 | 12 | ||
12 | --- | 13 | --- |
13 | mesonbuild/modules/gnome.py | 4 ++++ | 14 | mesonbuild/modules/gnome.py | 5 ++++- |
14 | 1 file changed, 4 insertions(+) | 15 | 1 file changed, 4 insertions(+), 1 deletion(-) |
15 | 16 | ||
16 | diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py | 17 | diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py |
17 | index dc2979e..c9ff9bd 100644 | 18 | index 1c6952d..5a6ff94 100644 |
18 | --- a/mesonbuild/modules/gnome.py | 19 | --- a/mesonbuild/modules/gnome.py |
19 | +++ b/mesonbuild/modules/gnome.py | 20 | +++ b/mesonbuild/modules/gnome.py |
20 | @@ -1053,6 +1053,10 @@ class GnomeModule(ExtensionModule): | 21 | @@ -35,7 +35,7 @@ from ..mesonlib import ( |
22 | from ..dependencies import Dependency, PkgConfigDependency, InternalDependency | ||
23 | from ..interpreterbase import noPosargs, noKwargs, permittedKwargs, FeatureNew, FeatureNewKwargs, FeatureDeprecatedKwargs, FeatureDeprecated | ||
24 | from ..interpreterbase import typed_kwargs, KwargInfo, ContainerTypeInfo | ||
25 | -from ..programs import ExternalProgram, OverrideProgram | ||
26 | +from ..programs import ExternalProgram, OverrideProgram, EmptyExternalProgram | ||
27 | from ..build import CustomTarget, CustomTargetIndex, GeneratedList | ||
28 | |||
29 | if T.TYPE_CHECKING: | ||
30 | @@ -1103,6 +1103,9 @@ class GnomeModule(ExtensionModule): | ||
21 | args.append(f'--{program_name}={path}') | 31 | args.append(f'--{program_name}={path}') |
22 | if namespace: | 32 | if namespace: |
23 | args.append('--namespace=' + namespace) | 33 | args.append('--namespace=' + namespace) |
24 | + gtkdoc_exe_wrapper = state.environment.properties.host.get('gtkdoc_exe_wrapper', None) | 34 | + if state.environment.need_exe_wrapper() and not isinstance(state.environment.get_exe_wrapper(), EmptyExternalProgram): |
25 | + if gtkdoc_exe_wrapper is not None: | 35 | + args.append('--run=' + ' '.join(state.environment.get_exe_wrapper().get_command())) |
26 | + args.append('--run=' + gtkdoc_exe_wrapper) | ||
27 | + | 36 | + |
28 | args += self._unpack_args('--htmlargs=', 'html_args', kwargs) | 37 | args += self._unpack_args('--htmlargs=', 'html_args', kwargs) |
29 | args += self._unpack_args('--scanargs=', 'scan_args', kwargs) | 38 | args += self._unpack_args('--scanargs=', 'scan_args', kwargs) |