diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-23 13:25:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-23 13:25:35 +0100 |
commit | b0c0fce6cfe2e79ebfd98eb0877a47a5fff7ab07 (patch) | |
tree | eb285bd073ec1589215a3f4b097d384ff0ba7b63 /meta/recipes-devtools/rust/rust-cross-canadian-common.inc | |
parent | 73cc39152d6d8d74a605c5740fb402673881189a (diff) | |
download | openembedded-core-contrib-rpurdie/debugsymbols.tar.gz |
rust-common/rust-cross: Clean up target json generation coderpurdie/debugsymbols
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.
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.inc | 6 |
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 python do_rust_gen_targets () { wd = d.getVar('WORKDIR') + '/targets/' # Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last - rust_gen_target(d, 'BUILD', wd, "", "generic", d.getVar('BUILD_ARCH')) - rust_gen_target(d, 'HOST', wd, "", "generic", d.getVar('HOST_ARCH')) - rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_LLVM_FEATURES') or "", d.getVar('TARGET_LLVM_CPU'), d.getVar('TARGET_ARCH')) + rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH')) + rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH')) + rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_ARCH')) } INHIBIT_DEFAULT_RUST_DEPS = "1" |