diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-05 15:27:17 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-12-12 04:20:35 -1000 |
| commit | 26ffdb7a3085b6d7230bd56424e82c7a3b51b4f9 (patch) | |
| tree | e7539f8104e922fb1e340cb0954af9d320891814 /meta/recipes-devtools | |
| parent | 1110f16718920c49980fa28e11954a7b435a84aa (diff) | |
| download | poky-26ffdb7a3085b6d7230bd56424e82c7a3b51b4f9.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: d8c030ef90272e42a1697f5195f887d09878aa01)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1912c4e9e0ecf9655f3b3a41588b54d7956f5899)
Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools')
| -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" |
