From d21462302dba49e0f0f350906092bfd8906695b8 Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Tue, 11 Feb 2020 18:50:18 +0100 Subject: [PATCH] trustfence-sign-tools: homogenize the sign script filename The recipe needs to create a copy of the sign.sh script to be used by other recipes, but the file is the same whether you use it for HAB or AHAB images. This is determined through the use of an exported variable with the mode. There is no need to have the script duplicated. Signed-off-by: Hector Palacios --- meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend | 2 +- .../recipes-digi/trustfence/trustfence-sign-tools_git.bb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend b/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend index a66c824f0..038f0f119 100644 --- a/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend +++ b/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_0.2.bbappend @@ -212,7 +212,7 @@ do_deploy_append () { # Sign U-boot image for ramc in ${RAM_CONFIGS}; do - trustfence-sign-ahab-uboot.sh ${DEPLOYDIR}/${UBOOT_PREFIX}-${MACHINE}-${ramc}.bin ${DEPLOYDIR}/${UBOOT_PREFIX}-${MACHINE}-${ramc}-signed.bin + trustfence-sign-uboot.sh ${DEPLOYDIR}/${UBOOT_PREFIX}-${MACHINE}-${ramc}.bin ${DEPLOYDIR}/${UBOOT_PREFIX}-${MACHINE}-${ramc}-signed.bin done cd ${DEPLOYDIR} diff --git a/meta-digi-arm/recipes-digi/trustfence/trustfence-sign-tools_git.bb b/meta-digi-arm/recipes-digi/trustfence/trustfence-sign-tools_git.bb index 222cb23af..a0481ea65 100644 --- a/meta-digi-arm/recipes-digi/trustfence/trustfence-sign-tools_git.bb +++ b/meta-digi-arm/recipes-digi/trustfence/trustfence-sign-tools_git.bb @@ -28,15 +28,14 @@ do_install() { install -d ${D}${bindir}/csf_templates if [ "${TRUSTFENCE_SIGN_MODE}" = "AHAB" ]; then install -m 0755 sign_ahab ${D}${bindir}/csf_templates/ - install -m 0755 git/scripts/sign.sh ${D}${bindir}/trustfence-sign-ahab-uboot.sh elif [ "${TRUSTFENCE_SIGN_MODE}" = "HAB" ]; then install -m 0755 sign_hab ${D}${bindir}/csf_templates/ install -m 0755 encrypt_hab ${D}${bindir}/csf_templates/ - install -m 0755 git/scripts/sign.sh ${D}${bindir}/trustfence-sign-uboot.sh else bberror "Unkown TRUSTFENCE_SIGN_MODE value" exit 1 fi + install -m 0755 git/scripts/sign.sh ${D}${bindir}/trustfence-sign-uboot.sh install -m 0755 trustfence-sign-kernel.sh ${D}${bindir}/ install -m 0755 git/scripts/csf_templates/* ${D}${bindir}/csf_templates }