]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-fitimage.bbclass: fix a wrong conditional check
authorMing Liu <liu.ming50@gmail.com>
Fri, 21 May 2021 12:12:14 +0000 (14:12 +0200)
committerSteve Sakoman <steve@sakoman.com>
Sat, 29 May 2021 00:22:21 +0000 (14:22 -1000)
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.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 900949af7fe357ee66065ba150b0b1914e8ca581)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel-fitimage.bbclass

index 72b05ff8d1dd24db14b5788551a8574851d85d5d..b4d8ff830927a28807d0c0bdffe291c4760a8c75 100644 (file)
@@ -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