mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
51959f5662
commit
fb37dd6822
@@ -553,7 +553,8 @@ def _get_srcrev_values(d):
|
|||||||
dict_tag_srcrevs[key] = rev
|
dict_tag_srcrevs[key] = rev
|
||||||
return (dict_srcrevs, dict_tag_srcrevs)
|
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)
|
pkghistdir = d.getVar('BUILDHISTORY_DIR_PACKAGE', True)
|
||||||
srcrevfile = os.path.join(pkghistdir, 'latest_srcrev')
|
srcrevfile = os.path.join(pkghistdir, 'latest_srcrev')
|
||||||
|
|
||||||
@@ -593,5 +594,3 @@ python do_write_srcrev() {
|
|||||||
if os.path.exists(srcrevfile):
|
if os.path.exists(srcrevfile):
|
||||||
os.remove(srcrevfile)
|
os.remove(srcrevfile)
|
||||||
}
|
}
|
||||||
|
|
||||||
addtask write_srcrev after do_fetch before do_build
|
|
||||||
|
|||||||
Reference in New Issue
Block a user