Skip to contentSkip to conversation

sstate: Add handling of do_shared_workdir task

PATCH New Richard Purdie 1 participant 1 message May 20, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sstate: Add handling of do_shared_workdir task

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.

meta/classes/sstate.bbclass +3 -0
index ccf2ea7..9e04388 100644
@@ -867,6 +867,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':