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/cargo/cargo-cross-canadian.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/cargo/cargo-cross-canadian.inc')
-rw-r--r-- | meta/recipes-devtools/cargo/cargo-cross-canadian.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/cargo/cargo-cross-canadian.inc b/meta/recipes-devtools/cargo/cargo-cross-canadian.inc index 01ba151d0a..d12267db3d 100644 --- a/meta/recipes-devtools/cargo/cargo-cross-canadian.inc +++ b/meta/recipes-devtools/cargo/cargo-cross-canadian.inc @@ -31,8 +31,8 @@ PN = "cargo-cross-canadian-${TRANSLATED_TARGET_ARCH}" python do_rust_gen_targets () { wd = d.getVar('WORKDIR') + '/targets/' - 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, 'BUILD', wd, d.getVar('BUILD_ARCH')) + rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH')) } do_compile:prepend () { |