From e54cc195087126707b0e2ca70f66d25c8537d02b Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Wed, 20 Jan 2021 10:34:49 +0800 Subject: meson: upgrade 0.56.0 -> 0.56.2 Signed-off-by: Anuj Mittal --- .../meson/nativesdk-meson_0.56.2.bb | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 meta/recipes-devtools/meson/nativesdk-meson_0.56.2.bb (limited to 'meta/recipes-devtools/meson/nativesdk-meson_0.56.2.bb') diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.56.2.bb b/meta/recipes-devtools/meson/nativesdk-meson_0.56.2.bb new file mode 100644 index 0000000000..7fdc4c86d9 --- /dev/null +++ b/meta/recipes-devtools/meson/nativesdk-meson_0.56.2.bb @@ -0,0 +1,66 @@ +include meson.inc + +inherit nativesdk +inherit siteinfo + +SRC_URI += "file://meson-setup.py \ + file://meson-wrapper" + +def meson_endian(prefix, d): + arch, os = d.getVar(prefix + "_ARCH"), d.getVar(prefix + "_OS") + sitedata = siteinfo_data_for_machine(arch, os, d) + if "endian-little" in sitedata: + return "little" + elif "endian-big" in sitedata: + return "big" + else: + bb.fatal("Cannot determine endianism for %s-%s" % (arch, os)) + +# The cross file logic is similar but not identical to that in meson.bbclass, +# since it's generating for an SDK rather than a cross-compile. Important +# differences are: +# - We can't set vars like CC, CXX, etc. yet because they will be filled in with +# real paths by meson-setup.sh when the SDK is extracted. +# - Some overrides aren't needed, since the SDK injects paths that take care of +# them. +do_install_append() { + install -d ${D}${datadir}/meson + cat >${D}${datadir}/meson/meson.cross.template <