]> code.ossystems Code Review - openembedded-core.git/commit
kernel/rm_work: Improve interaction
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 May 2015 09:31:51 +0000 (10:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 May 2015 11:05:52 +0000 (12:05 +0100)
commit55b4f7fd217f0c65d457c731150340c18fb3fa19
tree5232238f78b81030c589d0078de214e5973960a1
parent90861b8908d254154f4d1d613471070df8013da8
kernel/rm_work: Improve interaction

The do_shared_workdir task does leave behind the necessary information in
shared-work after it completes. We don't make this a "full" sstate task
however since that means tarring up and copying what is usually a large
amount of data which would be better extracted straight from the original
SCM.

The issue with rm_work occurs since it removes the do_shared_workdir stamp
meaning subsequent builds will add it back if they need to touch any kernel
modules for example. This ends up triggering a near enough complete kernerl
rebuild since if configure reruns, populate_sysroot has to rerun.

This change promotes the task to have a "setscene" variant but it doesn't use
any of the sstate class lifting to generate the sstate file. The sstate function
will therefore never get called since the sstate object will never exist.

We can add the task to the list of tasks rm_work promotes to a setscene variant
and unwanted rebuilds of the kernel should be avoided.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass
meta/classes/rm_work.bbclass