From 87ec014630e656ed58c727577195e25f0556aeb3 Mon Sep 17 00:00:00 2001 From: Francisco Gil Date: Thu, 13 Jun 2024 14:23:22 +0200 Subject: [PATCH] ccmp1X: uuu: add support to flash trustfence artifacts https://onedigi.atlassian.net/browse/DEL-9058 Signed-off-by: Francisco Gil --- .../u-boot/u-boot-dey/ccmp1/install_linux_fw_uuu.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp1/install_linux_fw_uuu.sh b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp1/install_linux_fw_uuu.sh index 969b1b054..f84b44625 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp1/install_linux_fw_uuu.sh +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp1/install_linux_fw_uuu.sh @@ -50,6 +50,7 @@ show_usage() echo " 'dey-image-webkit', 'core-image-base'..." echo " Defaults to '##DEFAULT_IMAGE_NAME##' if not provided." echo " -n No wait. Skips 10 seconds delay to stop script." + echo " -t Install Trustfence artifacts." exit 2 } @@ -93,6 +94,7 @@ do h) show_usage ;; i) IMAGE_NAME=${OPTARG} ;; n) NOWAIT=true ;; + t) TRUSTFENCE=true ;; esac done @@ -312,6 +314,11 @@ else uuu fb: ucmd saveenv fi +# Set the dboot_kernel_var to fitimage if Trustfence is enabled +if [ "${TRUSTFENCE}" = "true" ] || echo "$INSTALL_UBOOT_FILENAME" | grep -q -e "signed"; then + uuu fb: ucmd setenv dboot_kernel_var fitimage + uuu fb: ucmd saveenv +fi # Set the rootfstype if squashfs if [ "${SQUASHFS}" = true ]; then uuu fb: ucmd setenv rootfstype squashfs