]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-fitimage.bbclass: Check value of UBOOT_SIGN_ENABLE
authorNathan Rossi <nathan@nathanrossi.com>
Thu, 12 Jan 2017 03:24:36 +0000 (13:24 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jan 2017 22:45:41 +0000 (22:45 +0000)
Check the value of UBOOT_SIGN_ENABLE, as it is defaulted to "0" which
for matches as True in python due to being a non-empty string.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel-fitimage.bbclass

index ae6bfc52a7a7afe2fb13728a6302af51816c06dc..c15ded523ce1f1362ac55268b5978bc8bdbcac83 100644 (file)
@@ -26,7 +26,7 @@ python __anonymous () {
         # Verified boot will sign the fitImage and append the public key to
         # U-boot dtb. We ensure the U-Boot dtb is deployed before assembling
         # the fitImage:
-        if d.getVar('UBOOT_SIGN_ENABLE'):
+        if d.getVar('UBOOT_SIGN_ENABLE') == "1":
             uboot_pn = d.getVar('PREFERRED_PROVIDER_u-boot') or 'u-boot'
             d.appendVarFlag('do_assemble_fitimage', 'depends', ' %s:do_deploy' % uboot_pn)
 }