summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-04-09 09:39:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-09 13:07:05 +0100
commita751e9042dfffcc5c4701634a1f1f598012d609c (patch)
tree9e653e97e8804c20bf990920442ef76e4f88775d /meta
parent834ea4ed891c874e0336abb8f0b96664250208c9 (diff)
downloadopenembedded-core-a751e9042dfffcc5c4701634a1f1f598012d609c.tar.gz
classes/buildhistory: fix interaction with rm_work
Change do_write_srcrevs to a postfunc of do_fetch, avoiding a dependency being created that causes large numbers of setscene tasks being executed on every build with both buildhistory and rm_work being enabled. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/buildhistory.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 8c9f7942ee..1ac1a8b202 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -553,7 +553,8 @@ def _get_srcrev_values(d):
dict_tag_srcrevs[key] = rev
return (dict_srcrevs, dict_tag_srcrevs)
-python do_write_srcrev() {
+do_fetch[postfuncs] += "write_srcrev"
+python write_srcrev() {
pkghistdir = d.getVar('BUILDHISTORY_DIR_PACKAGE', True)
srcrevfile = os.path.join(pkghistdir, 'latest_srcrev')
@@ -593,5 +594,3 @@ python do_write_srcrev() {
if os.path.exists(srcrevfile):
os.remove(srcrevfile)
}
-
-addtask write_srcrev after do_fetch before do_build