From 6fe7cbb1bfb48d51b18c18621ab62f1a9c772ba1 Mon Sep 17 00:00:00 2001 From: Gonzalo Ruiz Date: Wed, 15 Jul 2020 15:25:30 +0200 Subject: [PATCH] imx-boot: create mkimage log symlink before signing The mkimage.log file is required by the signing script to create the CSF file. Since there is one mkimage log file per target, update the mkimage.log symlink right before signing the imx-boot file to ensure creating the CSF with the corresponding mkimage log for every target. https://jira.digi.com/browse/DEL-7158 Signed-off-by: Gonzalo Ruiz --- meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend b/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend index bca66452a..b11468bc8 100644 --- a/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend +++ b/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend @@ -177,8 +177,6 @@ do_deploy () { # Link to default bootable U-Boot filename. ln -sf ${UBOOT_PREFIX}-${MACHINE}.bin-${IMAGE_IMXBOOT_TARGET} ${BOOTABLE_FILENAME} cd - - # Link to first "target" mkimage log - ln -sf mkimage-${IMAGE_IMXBOOT_TARGET}.log mkimage.log else for ramc in ${UBOOT_RAM_COMBINATIONS}; do for rev in ${SOC_REVISIONS}; do @@ -213,6 +211,8 @@ do_deploy_append () { # Sign U-boot image if [ "${UBOOT_RAM_COMBINATIONS}" = "" ]; then for target in ${IMXBOOT_TARGETS}; do + # Link to current "target" mkimage log + ln -sf mkimage-${target}.log mkimage.log trustfence-sign-uboot.sh ${DEPLOYDIR}/${UBOOT_PREFIX}-${MACHINE}.bin-${target} ${DEPLOYDIR}/${UBOOT_PREFIX}-signed-${MACHINE}.bin-${target} done else