From: Xufeng Zhang Date: Fri, 1 Nov 2013 04:25:17 +0000 (+0800) Subject: kernel.bbclass: Delay rm_work to run after do_bundle_initramfs X-Git-Tag: 2015-4~4711 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=8308e22a44a2dea7d1bbfb429b9df9c63714a649;p=openembedded-core.git kernel.bbclass: Delay rm_work to run after do_bundle_initramfs 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 Signed-off-by: Xufeng Zhang Signed-off-by: Saul Wold --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index dedfab7d54..a4db9f5375 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -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