Skip to contentSkip to conversation

uboot-sign: Fix to install nonexistent dtb file

PATCH New Jamin Lin 1 participant 1 message Jan 15, 2024

lore
Share & tools
lore

Jamin Lin

author
#0 lore raw

PATCH 1/1 uboot-sign: Fix to install nonexistent dtb file

Add to check dtb file is exist, then install it.

---
 meta/classes-recipe/uboot-sign.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes-recipe/uboot-sign.bbclass +3 -1
index ad04c82378..26d75995a6 100644
@@ -315,7 +315,9 @@ EOF
 			${SPL_MKIMAGE_SIGN_ARGS}
 	fi
 
-	cp ${SPL_DIR}/${SPL_DTB_BINARY} ${SPL_DIR}/${SPL_DTB_SIGNED}
+	if [ -e "${SPL_DIR}/${SPL_DTB_BINARY}" ]; then
+		cp ${SPL_DIR}/${SPL_DTB_BINARY} ${SPL_DIR}/${SPL_DTB_SIGNED}
+	fi
 }
 
 uboot_assemble_fitimage_helper() {
Signature · 1 line
2.25.1