cargo: Enable build separation

Place generated artifacts in the directory suggested by bitbake (${B})
instead of directly in the source directory. This has multiple
advantages such as the ability to share source directory between
multiple machine types without risking cross contamination.
This commit is contained in:
Johan Anderholm
2019-09-19 19:49:19 +02:00
parent 2a4bb8966a
commit a673320995
3 changed files with 18 additions and 4 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ do_compile_prepend () {
do_install () {
install -d "${D}${bindir}"
install -m 755 "${RUSTSRC}/target/${CARGO_TARGET_SUBDIR}/cargo" "${D}${bindir}"
install -m 755 "${B}/target/${CARGO_TARGET_SUBDIR}/cargo" "${D}${bindir}"
}
# Disabled due to incompatibility with libgit2 0.28.x (https://github.com/rust-lang/git2-rs/issues/458, https://bugs.gentoo.org/707746#c1)