From 134814e52fefc9db47db469a4602f64ab0000a56 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Wed, 2 Dec 2020 11:33:04 +0800 Subject: [PATCH] scripts: fit.sh: remove unused hash node of rsa key Signed-off-by: Joseph Chen Change-Id: I9117428f812ed00f9b78971d2cabcf1e71aa0989 --- scripts/fit.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/fit.sh b/scripts/fit.sh index 676c703ca2..a1ac1ec726 100755 --- a/scripts/fit.sh +++ b/scripts/fit.sh @@ -281,13 +281,17 @@ function fit_gen_uboot_itb() fdtput -tx ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,r-squared 0x0 if grep -q '^CONFIG_SPL_ROCKCHIP_CRYPTO_V1=y' .config ; then fdtput -d ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,np + fdtput -r ${SPL_DTB} ${SIGNATURE_KEY_NODE}/hash@np else fdtput -d ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,c + fdtput -r ${SPL_DTB} ${SIGNATURE_KEY_NODE}/hash@c fi else fdtput -d ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,c fdtput -d ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,np fdtput -d ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,exponent-BN + fdtput -r ${SPL_DTB} ${SIGNATURE_KEY_NODE}/hash@c + fdtput -r ${SPL_DTB} ${SIGNATURE_KEY_NODE}/hash@np fi # repack spl @@ -394,6 +398,8 @@ function fit_gen_boot_itb() fdtput -d ${UBOOT_DTB} ${SIGNATURE_KEY_NODE} rsa,np fdtput -d ${UBOOT_DTB} ${SIGNATURE_KEY_NODE} rsa,exponent-BN fi + fdtput -r ${UBOOT_DTB} ${SIGNATURE_KEY_NODE}/hash@c + fdtput -r ${UBOOT_DTB} ${SIGNATURE_KEY_NODE}/hash@np fi mv ${ITS_BOOT} ${FIT_DIR}