diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-05 13:15:31 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-08 15:44:20 +0100 |
| commit | b1d8d2a3bfe40d83a651448bcd0eeb01434b7ad1 (patch) | |
| tree | 8266c80e68acab46fed9e1831149100c31e50a84 /meta/recipes-devtools/cargo | |
| parent | 9a093d034889bff444a5801313e24c39a323d7ef (diff) | |
| download | poky-b1d8d2a3bfe40d83a651448bcd0eeb01434b7ad1.tar.gz | |
rust: Generate per recipe target configuration files
Instead of generating target configuration files centrally and often getting
it wrong, or having trouble finding the right set, generate them dynamically
from the bbclass into WORKDIR per recipe.
(From OE-Core rev: 9160e4a37561d8ac882057450a818621bec13bed)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cargo')
| -rw-r--r-- | meta/recipes-devtools/cargo/cargo.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cargo/cargo.inc b/meta/recipes-devtools/cargo/cargo.inc index 607c51fc3d..978504052b 100644 --- a/meta/recipes-devtools/cargo/cargo.inc +++ b/meta/recipes-devtools/cargo/cargo.inc | |||
| @@ -18,6 +18,8 @@ EXCLUDE_FROM_WORLD = "1" | |||
| 18 | 18 | ||
| 19 | inherit cargo pkgconfig | 19 | inherit cargo pkgconfig |
| 20 | 20 | ||
| 21 | RUST_TARGETGENS = "BUILD HOST TARGET" | ||
| 22 | |||
| 21 | do_cargo_setup_snapshot () { | 23 | do_cargo_setup_snapshot () { |
| 22 | ${WORKDIR}/rust-snapshot-components/${CARGO_SNAPSHOT}/install.sh --prefix="${WORKDIR}/${CARGO_SNAPSHOT}" --disable-ldconfig | 24 | ${WORKDIR}/rust-snapshot-components/${CARGO_SNAPSHOT}/install.sh --prefix="${WORKDIR}/${CARGO_SNAPSHOT}" --disable-ldconfig |
| 23 | # Need to use uninative's loader if enabled/present since the library paths | 25 | # Need to use uninative's loader if enabled/present since the library paths |
