summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-05-13 22:56:20 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-14 07:57:28 +0100
commit436662bc4de1980166386bb95eeb60d5b68f9417 (patch)
treebb5249f96640fdf17c6795332bd8a0d868124f93 /meta/recipes-devtools
parent74fbe5578a23de88155b207f241f77e20093bcbd (diff)
downloadpoky-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.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