summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2020-01-08 17:19:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-11 15:19:21 +0000
commit5acd9cbc9d5c6355010775250fb25f043441c5cd (patch)
tree6dc84e041db677459751e7b431310a954859785a /meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux
parentae66cf5e03f04361aad2bd8784fb7d42e0f0bb08 (diff)
downloadopenembedded-core-5acd9cbc9d5c6355010775250fb25f043441c5cd.tar.gz
glib: support target/os/libc-specific Meson cross files
Build systems have a common problem that some tests can only be done by executing a piece of test code (compared to just compiling or linking test code). In a cross-compilation the execution of this code isn't possible and the Meson solution to this is to allow 'cross properties' to be specified in the cross files. GLib has a number of these, for example determining the direction the stack grows, whether /proc/self/cmdline exists, or the behaviour of snprintf(). Previously we'd passed values for these to the Glib build for target builds, but this misses out nativesdk builds (which are also cross-compiled) and the fact that some of these values are specific to the platform, some are specific to the host OS, and some are specific to the libc implementation. This problem has already been solved for autotools with the siteinfo class, which turns the target platform/OS/libc variables into filenames (such as common common-linux common-glibc). We can look for these in FILESDIR and use them as cross files. Assuming that there are no problems with this appoach it can be moved into meson.bbclass so that all Meson recipes can use it for their cross files. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux b/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux
new file mode 100644
index 0000000000..83596e0efb
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/glib-2.0/meson.cross.d/common-linux
@@ -0,0 +1,5 @@
+[properties]
+have_proc_self_cmdline = true
+
+[binaries]
+env = "/usr/bin/env"