]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
uboot-sign: Fix to install nonexistent dtb file
authorJamin Lin <jamin_lin@aspeedtech.com>
Fri, 19 Jan 2024 06:19:35 +0000 (14:19 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Feb 2024 17:12:55 +0000 (17:12 +0000)
Add to check dtb file exist, then install it.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/uboot-sign.bbclass

index abde0bc61cc46a63344494917911225fb77e5e82..4b462698f9416b654def1a19a2b6fbff8391f86c 100644 (file)
@@ -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() {