uboot-sign: Fix to install nonexistent dtb file

Add to check dtb file exist, then install it.

(From OE-Core rev: d2d818534d9334213730c169f8b235af8a794b33)

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>
This commit is contained in:
Jamin Lin
2024-01-19 14:19:35 +08:00
committed by Richard Purdie
parent a3c69c088e
commit 338a96e7c3

View 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() {