From 6ecae7b7d442d5c2589988447133a800dd0ea37e Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Tue, 5 Mar 2019 10:45:34 +0100 Subject: [PATCH] linux-dey: fix trustfence_sign() errors Device tree files no longer have the kernel type prefixed to their name, so the trustfence_sign() function must be updated to reflect this change or else errors will occur. https://jira.digi.com/browse/DEL-6476 Signed-off-by: Gabriel Valcazar --- meta-digi-arm/recipes-kernel/linux/linux-dey.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/meta-digi-arm/recipes-kernel/linux/linux-dey.inc b/meta-digi-arm/recipes-kernel/linux/linux-dey.inc index a4cee2e05..88d9d0171 100644 --- a/meta-digi-arm/recipes-kernel/linux/linux-dey.inc +++ b/meta-digi-arm/recipes-kernel/linux/linux-dey.inc @@ -36,12 +36,10 @@ trustfence_sign() { DTB=`normalize_dtb "${DTB}"` DTB_EXT=${DTB##*.} DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"` - for type in ${KERNEL_IMAGETYPES}; do - DTB_IMAGE="$(echo ${type}-${KERNEL_IMAGE_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g").${DTB_EXT}" - TMP_DTB_IMAGE_SIGNED="$(mktemp ${DTB_IMAGE}-signed.XXXXXX)" - trustfence-sign-kernel.sh -p "${DIGI_FAMILY}" -d "${DTB_IMAGE}" "${TMP_DTB_IMAGE_SIGNED}" - mv "${TMP_DTB_IMAGE_SIGNED}" "${DTB_IMAGE}" - done + DTB_IMAGE="${DTB_BASE_NAME}-${KERNEL_IMAGE_NAME}.${DTB_EXT}" + TMP_DTB_IMAGE_SIGNED="$(mktemp ${DTB_IMAGE}-signed.XXXXXX)" + trustfence-sign-kernel.sh -p "${DIGI_FAMILY}" -d "${DTB_IMAGE}" "${TMP_DTB_IMAGE_SIGNED}" + mv "${TMP_DTB_IMAGE_SIGNED}" "${DTB_IMAGE}" done } trustfence_sign[dirs] = "${DEPLOYDIR}"