classes/buildhistory: fix interaction with rm_work
PATCH 1/1 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 <[email protected]>
--- meta/classes/buildhistory.bbclass | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
meta/classes/buildhistory.bbclass +2 -3
@@ -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
Signature · 1 line
1.7.10.4