]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Delay rm_work to run after do_bundle_initramfs
authorXufeng Zhang <xufeng.zhang@windriver.com>
Fri, 1 Nov 2013 04:25:17 +0000 (12:25 +0800)
committerSaul Wold <sgw@linux.intel.com>
Mon, 4 Nov 2013 18:01:17 +0000 (10:01 -0800)
Since kernel will build twice when we are trying to bundle kernel
and initramfs together after commit 609d5a9ab("kernel.bbclass,
image.bbclass: Implement kernel INITRAMFS dependency and bundling"),
thus, the second building for kernel would fail if rm_work is done
previously.

To fix this problem, we need to make do_bundle_initramfs task run
before do_rm_work task.

[YOCTO #5416]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Xufeng Zhang <xufeng.zhang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/kernel.bbclass

index dedfab7d5473464d0b4a95fd7da91df3cf6453fe..a4db9f53753f19b557134cae4a57848b57787dae 100644 (file)
@@ -152,7 +152,7 @@ python do_devshell_prepend () {
     os.environ["LDFLAGS"] = ''
 }
 
-addtask bundle_initramfs after do_compile
+addtask bundle_initramfs after do_compile before do_build
 
 kernel_do_compile() {
        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE