From 1f42bdc67981148aaaaaa359b2f78436cc6a6c5c Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Tue, 2 Aug 2016 10:42:19 -0400 Subject: [PATCH] cargo_util: ensure directory exists prior to the file touch Signed-off-by: Derek Straka --- classes/cargo_util.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/cargo_util.bbclass b/classes/cargo_util.bbclass index b5a5b61..5f0003f 100644 --- a/classes/cargo_util.bbclass +++ b/classes/cargo_util.bbclass @@ -62,8 +62,9 @@ oe_cargo_fix_env () { cargo_util_do_compile () { cd "${B}" - # prevent cargo from trying to fetch down new data - touch "${WORKDIR}/cargo_home/registry/index/.cargo-index-lock" + # prevent cargo from trying to fetch down new data + mkdir -p "${WORKDIR}/cargo_home/registry/index/" + touch "${WORKDIR}/cargo_home/registry/index/.cargo-index-lock" oe_cargo_fix_env oe_cargo_build