Skip to contentSkip to conversation

kernel-fitimage.bbclass: Fix the dependency issue while generating fitimage_initramfs

PATCH New Manjukumar Matha 1 participant 1 message Feb 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-fitimage.bbclass: Fix the dependency issue while generating fitimage_initramfs

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

---
 meta/classes/kernel-fitimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-fitimage.bbclass +1 -1
index 718162a..8ebd3dd 100644
@@ -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"
Signature · 1 line
2.7.4