]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-fitimage: uboot-sign: Check UBOOT_DTB_BINARY before adding deps
authorAlex Kiernan <alex.kiernan@gmail.com>
Wed, 12 Jun 2019 08:15:59 +0000 (09:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Jun 2019 20:08:13 +0000 (21:08 +0100)
Since UBOOT_DTB_BINARY empty means we don't need to inject signatures
into the U-Boot DTB, we can remove the dependencies between consumers of
these two classes and resolve a circular dependency between u-boot and
kernel.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-fitimage.bbclass
meta/classes/uboot-sign.bbclass

index 2820ff968940f88fd1d3098869a4fecec598bec3..9e224daf057efe152e81051a2e45cd8e45ffffce 100644 (file)
@@ -42,7 +42,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') == "1":
+        if d.getVar('UBOOT_SIGN_ENABLE') == "1" and d.getVar('UBOOT_DTB_BINARY'):
             uboot_pn = d.getVar('PREFERRED_PROVIDER_u-boot') or 'u-boot'
             d.appendVarFlag('do_assemble_fitimage', 'depends', ' %s:do_populate_sysroot' % uboot_pn)
 }
index 8beafff7c03ec38dd6e5975b698c676df10a7a1b..de81ad1b389ca07b91be808993f075d600e4cb15 100644 (file)
@@ -116,7 +116,7 @@ do_install_append() {
 }
 
 python () {
-    if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == d.getVar('UBOOT_PN'):
+    if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == d.getVar('UBOOT_PN') and d.getVar('UBOOT_DTB_BINARY'):
         kernel_pn = d.getVar('PREFERRED_PROVIDER_virtual/kernel')
 
         # Make "bitbake u-boot -cdeploy" deploys the signed u-boot.dtb