From 771224df654ac09d30aec2ff121990a23925b732 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Thu, 11 Sep 2025 11:20:39 +0200 Subject: [PATCH] u-boot-dey: retain u-boot symlink for ccimx6/ccimx6qp platforms Commit b581ac2a3bfb8056422bd0651819e6b253bb0dfa ("u-boot: rework deploy symlinks using uboot_deploy_config") removed u-boot symlinks as part of cleanup process. However, the main symlink is still required for the ccimx6 and ccimx6qp platforms to generate bootable SD card images. This commit keeps the symlink for those specific platforms to fix the SD card image creation process. https://onedigi.atlassian.net/browse/DEL-9758 Signed-off-by: Arturo Buzarra --- meta-digi-arm/recipes-bsp/u-boot/u-boot-dey.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey.inc b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey.inc index dc0cc52d2..85d1bd9f6 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey.inc +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey.inc @@ -148,8 +148,12 @@ build_uboot_scripts() { # u-boot-spl.bin-- (needed for imx-boot) # uboot_deploy_config:append() { - rm -f ${DEPLOYDIR}/${UBOOT_SYMLINK} \ - ${DEPLOYDIR}/${UBOOT_BINARY}-${type} \ + if [ "${MACHINE}" != "ccimx6sbc" ] && [ "${MACHINE}" != "ccimx6qpsbc" ]; then + # U-Boot symlink is only required for ccimx6/ccimx6qp platforms during + # SD card image generation + rm -f ${DEPLOYDIR}/${UBOOT_SYMLINK} + fi + rm -f ${DEPLOYDIR}/${UBOOT_BINARY}-${type} \ ${DEPLOYDIR}/${UBOOT_BINARY} ln -sf ${UBOOT_BINARYNAME}-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${DEPLOYDIR}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} }