Skip to contentSkip to conversation

RESEND

PATCH New Ming Liu 1 participant 2 messages May 21, 2021

lore
Share & tools
lore

Ming Liu

author
#0 lore raw

v2 cover RESEND

From: Ming Liu <[email protected]>

Fixed a condition check issue

Ming Liu (1):
kernel-fitimage.bbclass: fix a wrong conditional check

 meta/classes/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.29.0
author
#1 lore raw

PATCH v2 1/1 kernel-fitimage.bbclass: fix a wrong conditional check

From: Ming Liu <[email protected]>

It should check if "${UBOOT_SIGN_ENABLE}" equals to "1" instead of checking if "${UBOOT_SIGN_ENABLE}" is not empty since it could be "0".

---
 meta/classes/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-fitimage.bbclass +1 -1
index 5cfd8af99d..993e159c75 100644
@@ -331,7 +331,7 @@ fitimage_emit_section_config() {
 
 	conf_csum="${FIT_HASH_ALG}"
 	conf_sign_algo="${FIT_SIGN_ALG}"
-	if [ -n "${UBOOT_SIGN_ENABLE}" ] ; then
+	if [ "${UBOOT_SIGN_ENABLE}" = "1" ] ; then
 		conf_sign_keyname="${UBOOT_SIGN_KEYNAME}"
 	fi
 
Signature · 1 line
2.29.0