From 248c3c7f4fa0a4729791edf785ba81104a9db562 Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Fri, 22 Nov 2024 13:59:01 +0100 Subject: [PATCH] sdk: build.sh: only build dey-toolchain when building SDKs Instead of having one toolchain per image, we now provide one per platform. https://onedigi.atlassian.net/browse/DEL-9297 Signed-off-by: Gabriel Valcazar --- sdk/build-github.sh | 12 ++++++------ sdk/build.sh | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sdk/build-github.sh b/sdk/build-github.sh index 2534961b7..3840509ec 100755 --- a/sdk/build-github.sh +++ b/sdk/build-github.sh @@ -15,7 +15,7 @@ # # Parameters set by Jenkins: # DY_BUILD_RELEASE: Build for release mode -# DY_BUILD_TCHAIN: Build toolchains for DEY images +# DY_BUILD_TCHAIN: Build toolchain for DEY images # DY_PLATFORMS: Platforms to build # DY_REVISION: Revision of the manifest repository (for 'repo init') # DY_TARGET: Target image (the default is platform dependent) @@ -241,12 +241,12 @@ for platform in ${DY_PLATFORMS}; do time fetch_all "${target}" # shellcheck disable=SC2046 time bitbake "${target}" $(swu_recipe_name "${target}") - # Build the toolchain for DEY images - if [ "${DY_BUILD_TCHAIN}" = "true" ] && echo "${target}" | grep -qs '^\(core\|dey\)-image-[^-]\+$'; then - printf "\n[INFO] Building the toolchain for %s.\n" "${target}" - time bitbake -c populate_sdk "${target}" - fi done + # Build the toolchain for DEY images + if [ "${DY_BUILD_TCHAIN}" = "true" ]; then + printf "\n[INFO] Building the toolchain for %s.\n" "${platform}" + time bitbake -c populate_sdk dey-toolchain + fi purge_sstate ) copy_images "${_this_img_dir}" diff --git a/sdk/build.sh b/sdk/build.sh index 985878446..920512f9e 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -15,7 +15,7 @@ # # Parameters set by Jenkins: # DY_BUILD_RELEASE: Build for release mode -# DY_BUILD_TCHAIN: Build toolchains for DEY images +# DY_BUILD_TCHAIN: Build toolchain for DEY images # DY_DISTRO: Distribution name (the default is 'dey') # DY_PLATFORMS: Platforms to build # DY_REVISION: Revision of the manifest repository (for 'repo init') @@ -303,12 +303,12 @@ for platform in ${DY_PLATFORMS}; do printf "\n[INFO] Building the %s target.\n" "${target}" # shellcheck disable=SC2046 time bitbake "${target}" $(swu_recipe_name "${target}") - # Build the toolchain for DEY images - if [ "${DY_BUILD_TCHAIN}" = "true" ] && echo "${target}" | grep -qs '^\(core\|dey\)-image-[^-]\+$'; then - printf "\n[INFO] Building the toolchain for %s.\n" "${target}" - time bitbake -c populate_sdk "${target}" - fi done + # Build the toolchain for DEY images + if [ "${DY_BUILD_TCHAIN}" = "true" ]; then + printf "\n[INFO] Building the toolchain for %s.\n" "${platform}" + time bitbake -c populate_sdk dey-toolchain + fi purge_sstate ) copy_images "${_this_img_dir}"