diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-23 11:54:33 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-28 11:07:33 +0100 |
| commit | 276c6ffe5f4d58b7c14eada8853edff906da0438 (patch) | |
| tree | 4270ecd42bae32ce128aeca73044c2c550dab817 | |
| parent | d48c7e45494e4a690ef62424f97eb4bb9b1ffa21 (diff) | |
| download | poky-276c6ffe5f4d58b7c14eada8853edff906da0438.tar.gz | |
rust-cross-canadian: Fix ordering of target json config generation
Based upon a patch from Otavio Salvador <otavio@ossystems.com.br>,
ensure the target json files are written in the correct order with
the most specific last incase it overwrites earlier files if the prefixes
match.
(From OE-Core rev: 1912c4e9e0ecf9655f3b3a41588b54d7956f5899)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/rust/rust-cross-canadian-common.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian-common.inc b/meta/recipes-devtools/rust/rust-cross-canadian-common.inc index 1f21c8af26..df4901f1fa 100644 --- a/meta/recipes-devtools/rust/rust-cross-canadian-common.inc +++ b/meta/recipes-devtools/rust/rust-cross-canadian-common.inc | |||
| @@ -27,9 +27,10 @@ DEBUG_PREFIX_MAP = "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDP | |||
| 27 | 27 | ||
| 28 | python do_rust_gen_targets () { | 28 | python do_rust_gen_targets () { |
| 29 | wd = d.getVar('WORKDIR') + '/targets/' | 29 | wd = d.getVar('WORKDIR') + '/targets/' |
| 30 | rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_LLVM_FEATURES') or "", d.getVar('TARGET_LLVM_CPU'), d.getVar('TARGET_ARCH')) | 30 | # Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last |
| 31 | rust_gen_target(d, 'HOST', wd, "", "generic", d.getVar('HOST_ARCH')) | ||
| 32 | rust_gen_target(d, 'BUILD', wd, "", "generic", d.getVar('BUILD_ARCH')) | 31 | rust_gen_target(d, 'BUILD', wd, "", "generic", d.getVar('BUILD_ARCH')) |
| 32 | rust_gen_target(d, 'HOST', wd, "", "generic", 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 | } | 34 | } |
| 34 | 35 | ||
| 35 | INHIBIT_DEFAULT_RUST_DEPS = "1" | 36 | INHIBIT_DEFAULT_RUST_DEPS = "1" |
