From 796334fa9a3ccfb2f54305a2f01b29cb3020572e Mon Sep 17 00:00:00 2001 From: "Diaz de Grenu, Jose" Date: Mon, 24 Oct 2016 17:35:45 +0200 Subject: [PATCH] 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 --- meta-digi-arm/classes/image_types_digi.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-digi-arm/classes/image_types_digi.bbclass b/meta-digi-arm/classes/image_types_digi.bbclass index 160cdd66c..48d29b906 100644 --- a/meta-digi-arm/classes/image_types_digi.bbclass +++ b/meta-digi-arm/classes/image_types_digi.bbclass @@ -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 }