]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-fitimage.bbclass: Fix the dependency issue while generating fitimage_initramfs
authorManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Fri, 15 Feb 2019 00:45:18 +0000 (16:45 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Feb 2019 10:33:08 +0000 (10:33 +0000)
When building fitimage_initramfs, the correct depedency is to build
after do_bundle_initramfs. We can run into the following dependency
issue

DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_assemble_fitimage_initramfs
aarch64-xilinx-linux-objcopy: 'vmlinux': No such file

This happens because initramfs renames vmlinux to vmlinux.bak while
generating vmlinux.initramfs, there is a chance that fitimage_initramfs
can also start during this process and create the above issue.

This patch resolve the dependency issue by running fitimage_initramfs
task after do_bundle_initramfs

Signed-off-by: Varalaxmi Bingi<varalaxm@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-fitimage.bbclass

index 718162a861f796ffcb96aa8179785e1395e24096..8ebd3ddd1e2ed3eea088d9ef3afad3fc65c4fc32 100644 (file)
@@ -488,7 +488,7 @@ do_assemble_fitimage_initramfs() {
        fi
 }
 
-addtask assemble_fitimage_initramfs before do_deploy after do_install
+addtask assemble_fitimage_initramfs before do_deploy after do_bundle_initramfs
 
 
 kernel_do_deploy[vardepsexclude] = "DATETIME"