From 81c09b151eb8fb37e3e1a11a3d39b181cd357d72 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Thu, 23 Oct 2025 12:33:30 +0200 Subject: [PATCH] build.sh: enable wic image generation and minor cleanups * generate SD card image using wic * remove ZIP_INSTALLER_CFG since DEY_IMAGE_INSTALLER="1" is now the default * drop purge_sstate https://onedigi.atlassian.net/browse/DEL-9768 Signed-off-by: Javier Viguera --- sdk/build-github.sh | 39 ++++----------------------------------- sdk/build.sh | 39 ++++----------------------------------- 2 files changed, 8 insertions(+), 70 deletions(-) diff --git a/sdk/build-github.sh b/sdk/build-github.sh index b3506bb79..f7eab5908 100755 --- a/sdk/build-github.sh +++ b/sdk/build-github.sh @@ -32,15 +32,11 @@ INHERIT += \"rm_work\" RM_WORK_EXCLUDE += \"dey-image-qt dey-image-webkit linux-dey qtbase u-boot-dey\" " -ZIP_INSTALLER_CFG=" -DEY_IMAGE_INSTALLER = \"1\" -" - SDCARD_FSTYPE=" -IMAGE_FSTYPES:append:ccimx6 = \" sdcard.gz\" -IMAGE_FSTYPES:append:ccimx8x = \" sdcard.gz\" -IMAGE_FSTYPES:append:ccimx8m = \" sdcard.gz\" -IMAGE_FSTYPES:append:ccimx9 = \" sdcard.gz\" +IMAGE_FSTYPES:append:ccimx6 = \" wic.bmap wic.gz\" +IMAGE_FSTYPES:append:ccimx8x = \" wic.bmap wic.gz\" +IMAGE_FSTYPES:append:ccimx8m = \" wic.bmap wic.gz\" +IMAGE_FSTYPES:append:ccimx9 = \" wic.bmap wic.gz\" " SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}" @@ -99,31 +95,6 @@ fetch_all() { rm -f "${FETCH_LOG}" } -# -# In the buildserver we share the state-cache for all the different platforms -# we build in a jenkins job. This may cause problems with some packages that -# have different runtime dependences depending on the platform. -# -# Purge then the state cache of those problematic packages between platform -# builds. -# -purge_sstate() { - local PURGE_PKGS=" \ - packagegroup-dey-audio \ - packagegroup-dey-bluetooth \ - packagegroup-dey-core \ - packagegroup-dey-debug \ - packagegroup-dey-examples \ - packagegroup-dey-gstreamer \ - packagegroup-dey-lvgl \ - packagegroup-dey-network \ - packagegroup-dey-qt \ - packagegroup-dey-webkit \ - packagegroup-dey-wireless \ - " - bitbake -k -c cleansstate "${PURGE_PKGS}" >/dev/null 2>&1 || true -} - # # For a given image recipe print the SWU recipe (if it exists) # @@ -242,7 +213,6 @@ for platform in ${DY_PLATFORMS}; do conf/local.conf { printf "%s" "${RM_WORK_CFG}" - printf "%s" "${ZIP_INSTALLER_CFG}" printf "%s" "${SDCARD_FSTYPE}" printf "%s" "${BUILD_TIMESTAMP}" } >> conf/local.conf @@ -257,7 +227,6 @@ for platform in ${DY_PLATFORMS}; do 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}" popd diff --git a/sdk/build.sh b/sdk/build.sh index 514c445e6..260775716 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -54,15 +54,11 @@ VIGILES_SUBFOLDER_NAME = \"${DY_REVISION}\" INHERIT += \"##VIGILES_BBCLASS##\" " -ZIP_INSTALLER_CFG=" -DEY_IMAGE_INSTALLER = \"1\" -" - SDCARD_FSTYPE=" -IMAGE_FSTYPES:append:ccimx6 = \" sdcard.gz\" -IMAGE_FSTYPES:append:ccimx8x = \" sdcard.gz\" -IMAGE_FSTYPES:append:ccimx8m = \" sdcard.gz\" -IMAGE_FSTYPES:append:ccimx9 = \" sdcard.gz\" +IMAGE_FSTYPES:append:ccimx6 = \" wic.bmap wic.gz\" +IMAGE_FSTYPES:append:ccimx8x = \" wic.bmap wic.gz\" +IMAGE_FSTYPES:append:ccimx8m = \" wic.bmap wic.gz\" +IMAGE_FSTYPES:append:ccimx9 = \" wic.bmap wic.gz\" " SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}" @@ -109,31 +105,6 @@ copy_images() { find "${1}" -type f -not -name MD5SUMS -print0 | xargs -r -0 md5sum | sed -e "s,${1}/,,g" | sort -k2,2 > "${1}"/MD5SUMS } -# -# In the buildserver we share the state-cache for all the different platforms -# we build in a jenkins job. This may cause problems with some packages that -# have different runtime dependences depending on the platform. -# -# Purge then the state cache of those problematic packages between platform -# builds. -# -purge_sstate() { - local PURGE_PKGS=" \ - packagegroup-dey-audio \ - packagegroup-dey-bluetooth \ - packagegroup-dey-core \ - packagegroup-dey-debug \ - packagegroup-dey-examples \ - packagegroup-dey-gstreamer \ - packagegroup-dey-lvgl \ - packagegroup-dey-network \ - packagegroup-dey-qt \ - packagegroup-dey-webkit \ - packagegroup-dey-wireless \ - " - bitbake -k -c cleansstate "${PURGE_PKGS}" >/dev/null 2>&1 || true -} - # # For a given image recipe print the SWU recipe (if it exists) # @@ -283,7 +254,6 @@ for platform in ${DY_PLATFORMS}; do if [ "${DY_RM_WORK}" = "true" ]; then printf "%s" "${RM_WORK_CFG}" >> conf/local.conf fi - printf "%s" "${ZIP_INSTALLER_CFG}" >> conf/local.conf printf "%s" "${SDCARD_FSTYPE}" >> conf/local.conf # Append extra configuration macros if provided from build environment if [ -n "${DY_EXTRA_LOCAL_CONF}" ]; then @@ -323,7 +293,6 @@ for platform in ${DY_PLATFORMS}; do 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}" popd