summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/meson/nativesdk-meson_0.58.0.bb14
1 files changed, 2 insertions, 12 deletions
diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.58.0.bb b/meta/recipes-devtools/meson/nativesdk-meson_0.58.0.bb
index 8778cab124..74e1a7104a 100644
--- a/meta/recipes-devtools/meson/nativesdk-meson_0.58.0.bb
+++ b/meta/recipes-devtools/meson/nativesdk-meson_0.58.0.bb
@@ -1,21 +1,11 @@
1include meson.inc 1include meson.inc
2 2
3inherit siteinfo 3inherit meson-routines
4inherit nativesdk 4inherit nativesdk
5 5
6SRC_URI += "file://meson-setup.py \ 6SRC_URI += "file://meson-setup.py \
7 file://meson-wrapper" 7 file://meson-wrapper"
8 8
9def meson_endian(prefix, d):
10 arch, os = d.getVar(prefix + "_ARCH"), d.getVar(prefix + "_OS")
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))
18
19# The cross file logic is similar but not identical to that in meson.bbclass, 9# The cross file logic is similar but not identical to that in meson.bbclass,
20# since it's generating for an SDK rather than a cross-compile. Important 10# since it's generating for an SDK rather than a cross-compile. Important
21# differences are: 11# differences are:
@@ -44,7 +34,7 @@ sys_root = @OECORE_TARGET_SYSROOT
44 34
45[host_machine] 35[host_machine]
46system = '${SDK_OS}' 36system = '${SDK_OS}'
47cpu_family = '${SDK_ARCH}' 37cpu_family = '${@meson_cpu_family("SDK_ARCH", d)}'
48cpu = '${SDK_ARCH}' 38cpu = '${SDK_ARCH}'
49endian = '${@meson_endian("SDK", d)}' 39endian = '${@meson_endian("SDK", d)}'
50EOF 40EOF