From 1f2a3f99531393a9df701a6a76d065a4cde8f451 Mon Sep 17 00:00:00 2001 From: Wildan Mubarok Date: Fri, 1 Aug 2025 06:05:48 +0000 Subject: [PATCH] Allow drivers to be compiled with debug profile --- recipes/core/drivers-initfs/recipe.toml | 6 +++--- recipes/core/drivers/recipe.toml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes/core/drivers-initfs/recipe.toml b/recipes/core/drivers-initfs/recipe.toml index c02a4b630..39b06258b 100644 --- a/recipes/core/drivers-initfs/recipe.toml +++ b/recipes/core/drivers-initfs/recipe.toml @@ -58,17 +58,17 @@ esac mkdir -pv "${COOKBOOK_STAGE}/bin" "${COOKBOOK_STAGE}/lib/drivers" export CARGO_PROFILE_RELEASE_OPT_LEVEL=s export CARGO_PROFILE_RELEASE_PANIC=abort -"${COOKBOOK_CARGO}" build --release \ +"${COOKBOOK_CARGO}" build ${build_flags} \ --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ $(for bin in "${BINS[@]}"; do echo "-p" "${bin}"; done) for bin in "${BINS[@]}" do case "${bin}" in pcid | pcid-spawner | fbbootlogd | fbcond | inputd | vesad | lived | ps2d | acpid | bcm2835-sdhcid | rtcd) - cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/bin" + cp -v "target/${TARGET}/${build_type}/${bin}" "${COOKBOOK_STAGE}/bin" ;; *) - cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/lib/drivers" + cp -v "target/${TARGET}/${build_type}/${bin}" "${COOKBOOK_STAGE}/lib/drivers" ;; esac done diff --git a/recipes/core/drivers/recipe.toml b/recipes/core/drivers/recipe.toml index 64e23de8c..df8ffe610 100644 --- a/recipes/core/drivers/recipe.toml +++ b/recipes/core/drivers/recipe.toml @@ -37,15 +37,15 @@ esac mkdir -pv "${COOKBOOK_STAGE}/usr/bin" "${COOKBOOK_STAGE}/usr/lib/drivers" export CARGO_PROFILE_RELEASE_OPT_LEVEL=s export CARGO_PROFILE_RELEASE_PANIC=abort -"${COOKBOOK_CARGO}" build --release \ +"${COOKBOOK_CARGO}" build ${build_flags} \ --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ $(for bin in "${BINS[@]}"; do echo "-p" "${bin}"; done) for bin in "${BINS[@]}" do if [[ "${bin}" == "inputd" || "${bin}" == "pcid" || "${bin}" == "pcid-spawner" ]]; then - cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/usr/bin" + cp -v "target/${TARGET}/${build_type}/${bin}" "${COOKBOOK_STAGE}/usr/bin" else - cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/usr/lib/drivers" + cp -v "target/${TARGET}/${build_type}/${bin}" "${COOKBOOK_STAGE}/usr/lib/drivers" fi done