]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: Add handling of do_shared_workdir task
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 May 2015 12:05:03 +0000 (13:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 May 2015 21:15:47 +0000 (22:15 +0100)
Changing TMPDIR and rebuilding an image was resulting in rebuilds of
kernels due to dependencies on the shared_workdir task. If installed
from sstate, nothing needs this task so add it to the whitelisted
task patterns.

After this change, the kernel does not rebuild when a new TMPDIR and
hot sstate cache is used.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index d5a0b04d776d6d6a57ce45ea0a58dcdb06f2e26d..b48504429fcb64b69483268ccffe4d830a0f0283 100644 (file)
@@ -815,6 +815,9 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
             # Target populate_sysroot need their dependencies
             return False
 
+        if taskdependees[task][1] == 'do_shared_workdir':
+            continue
+
         # This is due to the [depends] in useradd.bbclass complicating matters
         # The logic *is* reversed here due to the way hard setscene dependencies are injected
         if taskdependees[task][1] == 'do_package' and taskdependees[dep][0].endswith(('shadow-native', 'shadow-sysroot', 'base-passwd', 'pseudo-native')) and taskdependees[dep][1] == 'do_populate_sysroot':