summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-cross-canadian-common.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-23 13:25:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-28 11:07:33 +0100
commita02bb3b794fe97cbd64d6740db494de00c17134b (patch)
tree856db5e76a0e2296e12ee4fce3486a86ff183ed3 /meta/recipes-devtools/rust/rust-cross-canadian-common.inc
parent97e267f6df6063e1f02a31c68e9f8b0a6dbe2d98 (diff)
downloadpoky-a02bb3b794fe97cbd64d6740db494de00c17134b.tar.gz
rust-common/rust-cross: Clean up target json generation code
Some of the subtleties in the different codepaths for target rust json generation were not easy to spot. Start to simplfy the code to make this clearer. This patch should not have any functionality change although ABIEXTENSION has to be excluded from the function signature, the triplet would normally cover anything set there. (From OE-Core rev: 0f83d959465e0d99f98ade6803281585931d1b02) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/rust-cross-canadian-common.inc')
-rw-r--r--meta/recipes-devtools/rust/rust-cross-canadian-common.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian-common.inc b/meta/recipes-devtools/rust/rust-cross-canadian-common.inc
index df4901f1fa..5c0644e92d 100644
--- a/meta/recipes-devtools/rust/rust-cross-canadian-common.inc
+++ b/meta/recipes-devtools/rust/rust-cross-canadian-common.inc
@@ -28,9 +28,9 @@ DEBUG_PREFIX_MAP = "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDP
28python do_rust_gen_targets () { 28python do_rust_gen_targets () {
29 wd = d.getVar('WORKDIR') + '/targets/' 29 wd = d.getVar('WORKDIR') + '/targets/'
30 # Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last 30 # Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last
31 rust_gen_target(d, 'BUILD', wd, "", "generic", d.getVar('BUILD_ARCH')) 31 rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH'))
32 rust_gen_target(d, 'HOST', wd, "", "generic", d.getVar('HOST_ARCH')) 32 rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH'))
33 rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_LLVM_FEATURES') or "", d.getVar('TARGET_LLVM_CPU'), d.getVar('TARGET_ARCH')) 33 rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_ARCH'))
34} 34}
35 35
36INHIBIT_DEFAULT_RUST_DEPS = "1" 36INHIBIT_DEFAULT_RUST_DEPS = "1"