summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-01-07 16:37:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-08 11:16:45 +0000
commit5a0bed5be6fe2a62480c0a5fdddd1d99e599d4f9 (patch)
tree875b26a1341a3e8705f6c044da80e51e91ea1749 /meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb
parentc2556c44ecfb21c3fefddf12f9d9abdf482b90c7 (diff)
downloadpoky-5a0bed5be6fe2a62480c0a5fdddd1d99e599d4f9.tar.gz
meson: write correct host endian into SDK cross file
Meson doesn't ignore this but will emit a warning, so write the correct value. (From OE-Core rev: 1239157805a4c363da853de6db05c53083b01189) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb')
-rw-r--r--meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb15
1 files changed, 11 insertions, 4 deletions
diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb b/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb
index 55c57775e0..1549357a55 100644
--- a/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb
+++ b/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb
@@ -1,13 +1,20 @@
1include meson.inc 1include meson.inc
2 2
3inherit nativesdk 3inherit nativesdk
4inherit siteinfo
4 5
5SRC_URI += "file://meson-setup.py \ 6SRC_URI += "file://meson-setup.py \
6 file://meson-wrapper" 7 file://meson-wrapper"
7 8
8# both are required but not used by meson 9def meson_endian(prefix, d):
9MESON_SDK_ENDIAN = "bogus-endian" 10 arch, os = d.getVar(prefix + "_ARCH"), d.getVar(prefix + "_OS")
10MESON_TARGET_ENDIAN = "bogus-endian" 11 sitedata = siteinfo_data_for_machine(arch, os, d)
12 if "endian-little" in sitedata:
13 return "little"
14 elif "endian-big" in sitedata:
15 return "big"
16 else:
17 bb.fatal("Cannot determine endianism for %s-%s" % (arch, os))
11 18
12MESON_TOOLCHAIN_ARGS = "${BUILDSDK_CC_ARCH}${TOOLCHAIN_OPTIONS}" 19MESON_TOOLCHAIN_ARGS = "${BUILDSDK_CC_ARCH}${TOOLCHAIN_OPTIONS}"
13MESON_C_ARGS = "${MESON_TOOLCHAIN_ARGS} ${BUILDSDK_CFLAGS}" 20MESON_C_ARGS = "${MESON_TOOLCHAIN_ARGS} ${BUILDSDK_CFLAGS}"
@@ -44,7 +51,7 @@ cpp_link_args = @LDFLAGS
44system = '${SDK_OS}' 51system = '${SDK_OS}'
45cpu_family = '${SDK_ARCH}' 52cpu_family = '${SDK_ARCH}'
46cpu = '${SDK_ARCH}' 53cpu = '${SDK_ARCH}'
47endian = '${MESON_SDK_ENDIAN}' 54endian = '${@meson_endian("SDK", d)}'
48EOF 55EOF
49 56
50 install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d 57 install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d