trustfence: fix initramfs name when signed images are disabled

It is desirable to keep the name of the initramfs images the same regardless of
the sign and encryption configuration.

https://jira.digi.com/browse/DEL-3141

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
This commit is contained in:
Diaz de Grenu, Jose 2016-10-24 17:35:45 +02:00
parent 90b2b3ddc7
commit 796334fa9a
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,9 @@ IMAGE_CMD_cpio.gz.u-boot.tf() {
# Sign/encrypt the ramdisk
"${STAGING_BINDIR_NATIVE}/trustfence-sign-kernel.sh" -p "${DIGI_FAMILY}" -i "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz.u-boot" "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz.u-boot.tf"
else
# Rename image
mv "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz.u-boot" "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz.u-boot.tf"
fi
}