diff options
-rw-r--r-- | meta/recipes-devtools/meson/nativesdk-meson_0.58.0.bb | 14 |
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 @@ | |||
1 | include meson.inc | 1 | include meson.inc |
2 | 2 | ||
3 | inherit siteinfo | 3 | inherit meson-routines |
4 | inherit nativesdk | 4 | inherit nativesdk |
5 | 5 | ||
6 | SRC_URI += "file://meson-setup.py \ | 6 | SRC_URI += "file://meson-setup.py \ |
7 | file://meson-wrapper" | 7 | file://meson-wrapper" |
8 | 8 | ||
9 | def 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] |
46 | system = '${SDK_OS}' | 36 | system = '${SDK_OS}' |
47 | cpu_family = '${SDK_ARCH}' | 37 | cpu_family = '${@meson_cpu_family("SDK_ARCH", d)}' |
48 | cpu = '${SDK_ARCH}' | 38 | cpu = '${SDK_ARCH}' |
49 | endian = '${@meson_endian("SDK", d)}' | 39 | endian = '${@meson_endian("SDK", d)}' |
50 | EOF | 40 | EOF |