diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-12 23:57:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:01 +0100 |
commit | 0918ac9fdd94999bfed571f3e411da1a87dc3438 (patch) | |
tree | a957eefb389c2343e3a82dc18b78abccc9f40a0a /meta/classes | |
parent | f4919963922f2d24a47e73046d89b27b54f74e92 (diff) | |
download | poky-0918ac9fdd94999bfed571f3e411da1a87dc3438.tar.gz |
staging: Add BB_SETSCENE_VERIFY_FUNCTION2 for bitbake runqueue changes
We're about to rewrite the data structures in taskdata/runqueue in bitbake
and we 'leaked' knowledge about those structures to this single function.
Add a 'v2' function definition for use with the newer bitbake, the older
one can remain for compatibility for a while, then be removed. The function
is comparatively simple and rarely changes.
(From OE-Core rev: 2a6f88d51414993d18096f7f0dc27c0b862240bc)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/staging.bbclass | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index 30f2b507e1..a0b09a00bd 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass | |||
@@ -181,6 +181,19 @@ python sysroot_cleansstate () { | |||
181 | do_configure[prefuncs] += "sysroot_cleansstate" | 181 | do_configure[prefuncs] += "sysroot_cleansstate" |
182 | 182 | ||
183 | 183 | ||
184 | BB_SETSCENE_VERIFY_FUNCTION2 = "sysroot_checkhashes2" | ||
185 | |||
186 | def sysroot_checkhashes2(covered, tasknames, fns, d, invalidtasks): | ||
187 | problems = set() | ||
188 | configurefns = set() | ||
189 | for tid in invalidtasks: | ||
190 | if tasknames[tid] == "do_configure" and tid not in covered: | ||
191 | configurefns.add(fns[tid]) | ||
192 | for tid in covered: | ||
193 | if tasknames[tid] == "do_populate_sysroot" and fns[tid] in configurefns: | ||
194 | problems.add(tid) | ||
195 | return problems | ||
196 | |||
184 | BB_SETSCENE_VERIFY_FUNCTION = "sysroot_checkhashes" | 197 | BB_SETSCENE_VERIFY_FUNCTION = "sysroot_checkhashes" |
185 | 198 | ||
186 | def sysroot_checkhashes(covered, tasknames, fnids, fns, d, invalidtasks = None): | 199 | def sysroot_checkhashes(covered, tasknames, fnids, fns, d, invalidtasks = None): |