diff mbox series

[2/4] cargo: Create CARGO_HOME and CARGO_VENDORING_DIRECTORY

Message ID 20231230154953.8135-2-alex.kiernan@gmail.com
State New
Headers show
Series [1/4] rust: Move RUST_DIST_SERVER to rust-config.inc | expand

Commit Message

Alex Kiernan Dec. 30, 2023, 3:49 p.m. UTC
Remove assumption that CARGO_VENDORING_DIRECTORY is ${CARGO_HOME}/bitbake
and create both directories as part of cargo configure.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
---

 meta/classes-recipe/cargo_common.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass
index 0fb443edbdde..e932ada862bd 100644
--- a/meta/classes-recipe/cargo_common.bbclass
+++ b/meta/classes-recipe/cargo_common.bbclass
@@ -45,7 +45,7 @@  CARGO_LOCK_PATH ??= "${@ os.path.join(os.path.dirname(d.getVar('CARGO_MANIFEST_P
 
 CARGO_RUST_TARGET_CCLD ??= "${RUST_TARGET_CCLD}"
 cargo_common_do_configure () {
-	mkdir -p ${CARGO_HOME}/bitbake
+	mkdir -p "${CARGO_VENDORING_DIRECTORY}" "${CARGO_HOME}"
 
 	cat <<- EOF > ${CARGO_HOME}/config
 	# EXTRA_OECARGO_PATHS