[oe-commits] Richard Purdie : sstate: Add handling of do_shared_workdir task

git at git.openembedded.org git at git.openembedded.org
Thu May 21 09:51:56 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 624f575298c74272b69560735cb6f13f5a7761c1
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=624f575298c74272b69560735cb6f13f5a7761c1

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Wed May 20 13:05:03 2015 +0100

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.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/sstate.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d5a0b04..b485044 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -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':



More information about the Openembedded-commits mailing list