diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-23 13:48:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-28 11:07:33 +0100 |
commit | e75e781a480d37898e8e38dc993dd8daf0dee8b3 (patch) | |
tree | 658cc2591914a324cb25d9e13559c2bf30d7727a /meta/recipes-devtools/rust/rust-cross-canadian-common.inc | |
parent | 1e04c8aafbe562d2c87ca9de53fbb27703b0c51a (diff) | |
download | poky-e75e781a480d37898e8e38dc993dd8daf0dee8b3.tar.gz |
rust-target-config: Allow the targets generated to be configurable
Remove further code duplication by allowing the main function to be
configurable.
(From OE-Core rev: 2d4b35a0db1220e7a7f1b6776223aa4d40a3f246)
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 | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian-common.inc b/meta/recipes-devtools/rust/rust-cross-canadian-common.inc index 5c0644e92d..34020ff6ff 100644 --- a/meta/recipes-devtools/rust/rust-cross-canadian-common.inc +++ b/meta/recipes-devtools/rust/rust-cross-canadian-common.inc | |||
@@ -25,13 +25,7 @@ DEBUG_PREFIX_MAP = "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDP | |||
25 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ | 25 | -fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ |
26 | " | 26 | " |
27 | 27 | ||
28 | python do_rust_gen_targets () { | 28 | RUST_TARGETGENS = "BUILD HOST TARGET" |
29 | wd = d.getVar('WORKDIR') + '/targets/' | ||
30 | # Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last | ||
31 | rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH')) | ||
32 | rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH')) | ||
33 | rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_ARCH')) | ||
34 | } | ||
35 | 29 | ||
36 | INHIBIT_DEFAULT_RUST_DEPS = "1" | 30 | INHIBIT_DEFAULT_RUST_DEPS = "1" |
37 | 31 | ||