summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-20 13:05:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-21 10:51:15 +0100
commit5bcf9666a69c648eee2081388e42ec169be4c990 (patch)
treeb2c90874f52671d354c95ae08ec5f9c2cbdf76ec
parentb5ba70b47fff227e4381fcac93defccb79e3d8f1 (diff)
downloadpoky-5bcf9666a69c648eee2081388e42ec169be4c990.tar.gz
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. (From OE-Core rev: 624f575298c74272b69560735cb6f13f5a7761c1) 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>
-rw-r--r--meta/classes/sstate.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d5a0b04d77..b48504429f 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -815,6 +815,9 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
815 # Target populate_sysroot need their dependencies 815 # Target populate_sysroot need their dependencies
816 return False 816 return False
817 817
818 if taskdependees[task][1] == 'do_shared_workdir':
819 continue
820
818 # This is due to the [depends] in useradd.bbclass complicating matters 821 # This is due to the [depends] in useradd.bbclass complicating matters
819 # The logic *is* reversed here due to the way hard setscene dependencies are injected 822 # The logic *is* reversed here due to the way hard setscene dependencies are injected
820 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': 823 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':