diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-05-13 22:56:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-14 07:57:28 +0100 |
commit | 436662bc4de1980166386bb95eeb60d5b68f9417 (patch) | |
tree | bb5249f96640fdf17c6795332bd8a0d868124f93 /meta/recipes-devtools | |
parent | 74fbe5578a23de88155b207f241f77e20093bcbd (diff) | |
download | poky-436662bc4de1980166386bb95eeb60d5b68f9417.tar.gz |
nativesdk-meson: correctly set cpu_family
This was a warning before, but with the patch
that turns it into an error, it needs to be properly addressed.
(From OE-Core rev: b6257f3b88e788af3ee748a8a6366aab819dce3f)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-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 |