[meta-freescale] [PATCH] kernel-itbimage: depends extraimage task to fix EXTRA_IMAGEDEPEND license issue

C.r. Guo chunrong.guo at nxp.com
Mon Dec 4 23:38:44 PST 2017


Hello all,
please ignore it .

There is a patch merged in upstream Yocto 3 days ago.
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=stable/rocko-next&id=3e1bc75af4c94fe150f70e8334408cf16007aa7b

Thanks
Chunrong


-----Original Message-----
From: Chunrong Guo [mailto:B40290 at freescale.com] 
Sent: Monday, December 04, 2017 6:02 PM
To: meta-freescale at yoctoproject.org
Cc: Zhenhua Luo <zhenhua.luo at nxp.com>; C.r. Guo <chunrong.guo at nxp.com>
Subject: [PATCH] kernel-itbimage: depends extraimage task to fix EXTRA_IMAGEDEPEND license issue

From: Chunrong Guo <chunrong.guo at nxp.com>

*Fix the build error:
|[Errno 2] No such file or directory: '.../licenses/ppa/recipeinfo'

Signed-off-by: Chunrong Guo <chunrong.guo at nxp.com>
---
 classes/kernel-itbimage.bbclass | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/classes/kernel-itbimage.bbclass b/classes/kernel-itbimage.bbclass index bb838ef..448e2a6 100644
--- a/classes/kernel-itbimage.bbclass
+++ b/classes/kernel-itbimage.bbclass
@@ -22,6 +22,14 @@ python __anonymous () {
         image = d.getVar('INITRAMFS_IMAGE')
         if image:
             d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete')
+            def extraimage_getdepends(task):
+                deps = ""
+                for dep in (d.getVar('EXTRA_IMAGEDEPENDS') or "").split():
+                    deps += " %s:%s" % (dep, task)
+                return deps
+
+            d.appendVarFlag('do_image', 'depends', extraimage_getdepends('do_populate_lic'))
+            d.appendVarFlag('do_image_complete', 'depends', 
+ extraimage_getdepends('do_populate_sysroot'))
 
         # 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
--
1.9.0



More information about the meta-freescale mailing list