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 <Gonzalo.Ruiz@digi.com>
This commit is contained in:
parent
faa088982b
commit
6fe7cbb1bf
|
|
@ -177,8 +177,6 @@ do_deploy () {
|
||||||
# Link to default bootable U-Boot filename.
|
# Link to default bootable U-Boot filename.
|
||||||
ln -sf ${UBOOT_PREFIX}-${MACHINE}.bin-${IMAGE_IMXBOOT_TARGET} ${BOOTABLE_FILENAME}
|
ln -sf ${UBOOT_PREFIX}-${MACHINE}.bin-${IMAGE_IMXBOOT_TARGET} ${BOOTABLE_FILENAME}
|
||||||
cd -
|
cd -
|
||||||
# Link to first "target" mkimage log
|
|
||||||
ln -sf mkimage-${IMAGE_IMXBOOT_TARGET}.log mkimage.log
|
|
||||||
else
|
else
|
||||||
for ramc in ${UBOOT_RAM_COMBINATIONS}; do
|
for ramc in ${UBOOT_RAM_COMBINATIONS}; do
|
||||||
for rev in ${SOC_REVISIONS}; do
|
for rev in ${SOC_REVISIONS}; do
|
||||||
|
|
@ -213,6 +211,8 @@ do_deploy_append () {
|
||||||
# Sign U-boot image
|
# Sign U-boot image
|
||||||
if [ "${UBOOT_RAM_COMBINATIONS}" = "" ]; then
|
if [ "${UBOOT_RAM_COMBINATIONS}" = "" ]; then
|
||||||
for target in ${IMXBOOT_TARGETS}; do
|
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}
|
trustfence-sign-uboot.sh ${DEPLOYDIR}/${UBOOT_PREFIX}-${MACHINE}.bin-${target} ${DEPLOYDIR}/${UBOOT_PREFIX}-signed-${MACHINE}.bin-${target}
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue