diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-06-15 10:12:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-17 00:02:50 +0100 |
commit | 0030f7f27446263995f5470fe0d801b3a66a58cf (patch) | |
tree | e512701d5d5814bb4f8f303b4a258f44041b1683 /meta/recipes-devtools/meson/nativesdk-meson_0.58.1.bb | |
parent | d20121522dd6f8bf0286fb6133243a64e095bc55 (diff) | |
download | openembedded-core-0030f7f27446263995f5470fe0d801b3a66a58cf.tar.gz |
meson: upgrade 0.58.0 -> 0.58.1
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/meson/nativesdk-meson_0.58.1.bb')
-rw-r--r-- | meta/recipes-devtools/meson/nativesdk-meson_0.58.1.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.58.1.bb b/meta/recipes-devtools/meson/nativesdk-meson_0.58.1.bb new file mode 100644 index 0000000000..74e1a7104a --- /dev/null +++ b/meta/recipes-devtools/meson/nativesdk-meson_0.58.1.bb @@ -0,0 +1,56 @@ +include meson.inc + +inherit meson-routines +inherit nativesdk + +SRC_URI += "file://meson-setup.py \ + file://meson-wrapper" + +# 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 <<EOF +[binaries] +c = @CC +cpp = @CXX +ar = @AR +nm = @NM +strip = @STRIP +pkgconfig = 'pkg-config' + +[properties] +needs_exe_wrapper = true +c_args = @CFLAGS +c_link_args = @LDFLAGS +cpp_args = @CPPFLAGS +cpp_link_args = @LDFLAGS +sys_root = @OECORE_TARGET_SYSROOT + +[host_machine] +system = '${SDK_OS}' +cpu_family = '${@meson_cpu_family("SDK_ARCH", d)}' +cpu = '${SDK_ARCH}' +endian = '${@meson_endian("SDK", d)}' +EOF + + install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d + install -m 0755 ${WORKDIR}/meson-setup.py ${D}${SDKPATHNATIVE}/post-relocate-setup.d/ + + # We need to wrap the real meson with a thin env setup wrapper. + mv ${D}${bindir}/meson ${D}${bindir}/meson.real + install -m 0755 ${WORKDIR}/meson-wrapper ${D}${bindir}/meson +} + +RDEPENDS_${PN} += "\ + nativesdk-ninja \ + nativesdk-python3 \ + nativesdk-python3-setuptools \ + " + +FILES_${PN} += "${datadir}/meson ${SDKPATHNATIVE}" |