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".

Signed-off-by: Ming Liu <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
(cherry picked from commit 900949af7fe357ee66065ba150b0b1914e8ca581)
Signed-off-by: Steve Sakoman <[email protected]>
---
 meta/classes/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/kernel-fitimage.bbclass 
b/meta/classes/kernel-fitimage.bbclass
index 72b05ff8d1..b4d8ff8309 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -250,7 +250,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
 
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152513): 
https://lists.openembedded.org/g/openembedded-core/message/152513
Mute This Topic: https://lists.openembedded.org/mt/83233834/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to