From patchwork Sat Jan 5 00:45:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/1] image.bbclass:specify the order of do_rootfs Date: Sat, 05 Jan 2013 00:45:43 -0000 From: Hongxu Jia X-Patchwork-Id: 42011 Message-Id: To: The task of do_populate_lic use "bb.build.exec_func" to execute shell function "sstate_create_package", and "bb.build.exec_func" use ${B} as default dir to cd and execute the shell function. At this place, B = "${WORKDIR}/${BPN}-${PV}/", and "${WORKDIR}/${BPN}-${PV}/" is removed by task do_rootfs. When we use more than one bitabke to run tasks, there is a chance that do_rootfs and do_populate_lic are being executed at the same time. So we should explicity specify the order of do_populate_lic and do_rootfs to let "${WORKDIR}/${BPN}-${PV}/" could be correctly used and removed. [YOCTO #3674] Signed-off-by: Hongxu Jia --- meta/classes/image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index d3a416d..c2dab36 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -472,4 +472,4 @@ do_package_write_ipk[noexec] = "1" do_package_write_deb[noexec] = "1" do_package_write_rpm[noexec] = "1" -addtask rootfs before do_build +addtask rootfs before do_build after do_populate_lic