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/cargo | |
| 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/cargo')
| -rw-r--r-- | meta/recipes-devtools/cargo/cargo-cross-canadian.inc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/meta/recipes-devtools/cargo/cargo-cross-canadian.inc b/meta/recipes-devtools/cargo/cargo-cross-canadian.inc index e83b6a67b3..a2fac929d4 100644 --- a/meta/recipes-devtools/cargo/cargo-cross-canadian.inc +++ b/meta/recipes-devtools/cargo/cargo-cross-canadian.inc | |||
| @@ -28,12 +28,7 @@ inherit cross-canadian | |||
| 28 | 28 | ||
| 29 | PN = "cargo-cross-canadian-${TRANSLATED_TARGET_ARCH}" | 29 | PN = "cargo-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
| 30 | 30 | ||
| 31 | python do_rust_gen_targets () { | 31 | RUST_TARGETGENS = "BUILD HOST" |
| 32 | wd = d.getVar('WORKDIR') + '/targets/' | ||
| 33 | |||
| 34 | rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH')) | ||
| 35 | rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH')) | ||
| 36 | } | ||
| 37 | 32 | ||
| 38 | do_compile:prepend () { | 33 | do_compile:prepend () { |
| 39 | PKG_CONFIG_PATH="${RECIPE_SYSROOT_NATIVE}/usr/lib/pkgconfig:${PKG_CONFIG_PATH}" | 34 | PKG_CONFIG_PATH="${RECIPE_SYSROOT_NATIVE}/usr/lib/pkgconfig:${PKG_CONFIG_PATH}" |
