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 committed 2021-01-08 16:47:40 +01:00
1 parent 2a4bb8966a
commit a673320995
3 files changed
+18 -4

No files matched your search

+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)