trustfence: use correct u-boot image for sdcard

When the Bootloader is an 'u-boot' select the correct u-boot
signed image to compose the sdcard artifact.

Signed u-boot artifacts start with 'u-boot-dtb-signed-'.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
This commit is contained in:
Gonzalo Ruiz 2020-06-14 13:02:44 +02:00
parent e8f721a0b2
commit 7143ea9534
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ IMAGE_CMD_sdcard() {
# Set u-boot image to flash depending on whether TRUSTFENCE_SIGN is enabled
if [ "${TRUSTFENCE_SIGN}" = "1" ]; then
if [ "${BOOTLOADER_IMAGE_RECIPE}" = "u-boot" ]; then
SDIMG_BOOT="$(readlink -e ${SDIMG_BOOTLOADER} | sed -e 's,u-boot-,u-boot-signed-,g')"
SDIMG_BOOT="$(readlink -e ${SDIMG_BOOTLOADER} | sed -e 's,u-boot-,u-boot-dtb-signed-,g')"
else
SDIMG_BOOT="$(readlink -e ${SDIMG_BOOTLOADER} | sed -e 's,imx-boot-,imx-boot-signed-,g')"
fi