From d0dc8282f6968ae0f41317ce64b6653cc21a09cf Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Fri, 23 May 2025 11:57:30 +0200 Subject: [PATCH] u-boot-dey: safeguard rm operation in adapt_uboot_filenames to prevent build issues This commit fixes the rm command in the adapt_uboot_filenames function to prevent build failures when the target artifact does not exist, ensuring the operation is safe in all cases. https://onedigi.atlassian.net/browse/DEL-9634 Signed-off-by: Arturo Buzarra --- meta-digi-arm/recipes-bsp/u-boot/u-boot-dey.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7c9291d50..9c90fd148 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 @@ -145,7 +145,7 @@ adapt_uboot_filenames() { if [ $j -eq $i ] then cd ${DEPLOYDIR} - rm -r ${UBOOT_BINARY}-${type} + rm -f ${UBOOT_BINARY}-${type} ln -sf ${UBOOT_BINARYNAME}-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} fi done