From: Ming Liu <liu.min...@gmail.com>

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 <liu.min...@gmail.com>
---
 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 5cfd8af99d..993e159c75 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -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
 
-- 
2.29.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#151231): 
https://lists.openembedded.org/g/openembedded-core/message/151231
Mute This Topic: https://lists.openembedded.org/mt/82574447/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to