diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-21 14:37:10 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-22 13:07:11 +0000 |
commit | 3ab018c6254b883a6b6a61f79405dc3f8e40ad77 (patch) | |
tree | 788002bb54a247ee7292cce8d58ac88655e2ec09 /meta/classes | |
parent | 7a2458f451f9e189ee77fa5905fc862f6fc3e5ac (diff) | |
download | poky-3ab018c6254b883a6b6a61f79405dc3f8e40ad77.tar.gz |
staging.bbclass: Add BB_SETSCENE_VERIFY_FUNCTION function
Since we clean out do_populate_sysroot if do_configure runs, don't
allow do_populate_sysroot_setscene functions if we're going to
run do_configure.
(From OE-Core rev: 5f1dc1991f97037692193572298eb7f7a5640760)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/staging.bbclass | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index 831840456b..259a6611c9 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass | |||
@@ -73,6 +73,21 @@ python sysroot_cleansstate () { | |||
73 | } | 73 | } |
74 | do_configure[prefuncs] += "sysroot_cleansstate" | 74 | do_configure[prefuncs] += "sysroot_cleansstate" |
75 | 75 | ||
76 | |||
77 | BB_SETSCENE_VERIFY_FUNCTION = "sysroot_checkhashes" | ||
78 | |||
79 | def sysroot_checkhashes(covered, tasknames, fnids, fns, d): | ||
80 | problems = set() | ||
81 | configurefnids = set() | ||
82 | for task in xrange(len(tasknames)): | ||
83 | if tasknames[task] == "do_configure" and task not in covered: | ||
84 | configurefnids.add(fnids[task]) | ||
85 | for task in covered: | ||
86 | if tasknames[task] == "do_populate_sysroot" and fnids[task] in configurefnids: | ||
87 | problems.add(task) | ||
88 | bb.error("sysroot task found %s" % fns[fnids[task]]) | ||
89 | return problems | ||
90 | |||
76 | python do_populate_sysroot () { | 91 | python do_populate_sysroot () { |
77 | # | 92 | # |
78 | # if do_stage exists, we're legacy. In that case run the do_stage, | 93 | # if do_stage exists, we're legacy. In that case run the do_stage, |