summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/meson/nativesdk-meson_0.49.0.bb
diff options
context:
space:
mode:
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