diff --git a/recipes/core/drivers-initfs/recipe.toml b/recipes/core/drivers-initfs/recipe.toml index 3d10a4175..e1e91f5bb 100644 --- a/recipes/core/drivers-initfs/recipe.toml +++ b/recipes/core/drivers-initfs/recipe.toml @@ -49,11 +49,11 @@ esac mkdir -pv "${COOKBOOK_STAGE}/bin" export CARGO_PROFILE_RELEASE_OPT_LEVEL=s export CARGO_PROFILE_RELEASE_PANIC=abort +"${COOKBOOK_CARGO}" build --release \ + --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ + $(for bin in "${BINS[@]}"; do echo "-p" "${bin}"; done) for bin in "${BINS[@]}" do - "${COOKBOOK_CARGO}" build --release \ - --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ - -p "${bin}" cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/bin" done diff --git a/recipes/core/drivers/recipe.toml b/recipes/core/drivers/recipe.toml index 024306fe4..cccd27290 100644 --- a/recipes/core/drivers/recipe.toml +++ b/recipes/core/drivers/recipe.toml @@ -34,11 +34,11 @@ esac mkdir -pv "${COOKBOOK_STAGE}/bin" export CARGO_PROFILE_RELEASE_OPT_LEVEL=s export CARGO_PROFILE_RELEASE_PANIC=abort +"${COOKBOOK_CARGO}" build --release \ + --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ + $(for bin in "${BINS[@]}"; do echo "-p" "${bin}"; done) for bin in "${BINS[@]}" do - "${COOKBOOK_CARGO}" build --release \ - --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ - -p "${bin}" cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/bin" done