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:16:52 +0100
commitfb37dd6822578fced05fa4ab66b56341a46b3bbc (patch)
tree080e4afb42be18cc6143ac95bc82cf71784986c5 /meta
parent51959f5662283f47d9a64fcef7fdeff45a14e768 (diff)
downloadpoky-fb37dd6822578fced05fa4ab66b56341a46b3bbc.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. (From OE-Core rev: a751e9042dfffcc5c4701634a1f1f598012d609c) 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):
553 dict_tag_srcrevs[key] = rev 553 dict_tag_srcrevs[key] = rev
554 return (dict_srcrevs, dict_tag_srcrevs) 554 return (dict_srcrevs, dict_tag_srcrevs)
555 555
556python do_write_srcrev() { 556do_fetch[postfuncs] += "write_srcrev"
557python write_srcrev() {
557 pkghistdir = d.getVar('BUILDHISTORY_DIR_PACKAGE', True) 558 pkghistdir = d.getVar('BUILDHISTORY_DIR_PACKAGE', True)
558 srcrevfile = os.path.join(pkghistdir, 'latest_srcrev') 559 srcrevfile = os.path.join(pkghistdir, 'latest_srcrev')
559 560
@@ -593,5 +594,3 @@ python do_write_srcrev() {
593 if os.path.exists(srcrevfile): 594 if os.path.exists(srcrevfile):
594 os.remove(srcrevfile) 595 os.remove(srcrevfile)
595} 596}
596
597addtask write_srcrev after do_fetch before do_build