From: Jamin Lin Date: Fri, 19 Jan 2024 06:19:35 +0000 (+0800) Subject: uboot-sign: Fix to install nonexistent dtb file X-Git-Tag: uninative-4.4~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2d818534d9334213730c169f8b235af8a794b33;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git uboot-sign: Fix to install nonexistent dtb file Add to check dtb file exist, then install it. Signed-off-by: Jamin Lin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/uboot-sign.bbclass b/meta/classes-recipe/uboot-sign.bbclass index abde0bc61cc..4b462698f94 100644 --- a/meta/classes-recipe/uboot-sign.bbclass +++ b/meta/classes-recipe/uboot-sign.bbclass @@ -318,7 +318,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() {