From b8ec6bc78a628b238c0008777e308b6560f758d1 Mon Sep 17 00:00:00 2001
From: bjorn3 <17426603+bjorn3@users.noreply.github.com>
Date: Mon, 8 Jan 2024 22:16:57 +0100
Subject: [PATCH] Make the drivers and drivers-initfs recipes agnostic to
 package location

---
 recipes/core/drivers-initfs/recipe.toml | 3 ++-
 recipes/core/drivers/recipe.toml        | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/recipes/core/drivers-initfs/recipe.toml b/recipes/core/drivers-initfs/recipe.toml
index 80622ca87..ddb2e209a 100644
--- a/recipes/core/drivers-initfs/recipe.toml
+++ b/recipes/core/drivers-initfs/recipe.toml
@@ -49,7 +49,8 @@ mkdir -pv "${COOKBOOK_STAGE}/bin"
 for bin in "${BINS[@]}"
 do
     "${COOKBOOK_CARGO}" rustc --release \
-        --manifest-path "${COOKBOOK_SOURCE}/${bin}/Cargo.toml" \
+        --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
+        -p "${bin}" \
         --bin "${bin}" \
         -- \
         -C opt-level=s \
diff --git a/recipes/core/drivers/recipe.toml b/recipes/core/drivers/recipe.toml
index 8d3f5d23b..076d703e2 100644
--- a/recipes/core/drivers/recipe.toml
+++ b/recipes/core/drivers/recipe.toml
@@ -35,7 +35,8 @@ mkdir -pv "${COOKBOOK_STAGE}/bin"
 for bin in "${BINS[@]}"
 do
     "${COOKBOOK_CARGO}" rustc --release \
-        --manifest-path "${COOKBOOK_SOURCE}/${bin}/Cargo.toml" \
+        --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
+        -p "${bin}" \
         --bin "${bin}" \
         -- \
         -C opt-level=s \
-- 
GitLab