From: Paul Eggleton Date: Mon, 19 Oct 2020 04:03:56 +0000 (-0700) Subject: classes/buildhistory: record SRC_URI X-Git-Tag: 2020-10-gatesgarth~20 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=70714795aafc98a6df1df7f944867093eb8cafc7;p=openembedded-core.git classes/buildhistory: record SRC_URI It can be useful to record SRC_URI into buildhistory for the purposes of tracking exactly which sources got built (we already have SRCREV) as well as getting an indication when changes to the SRC_URI relate to changes in the output. Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 0f26c3c07b..7d5e3eb8fd 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -116,6 +116,7 @@ python buildhistory_emit_pkghistory() { self.srcrev = "" self.layer = "" self.config = "" + self.src_uri = "" class PackageInfo: @@ -258,6 +259,7 @@ python buildhistory_emit_pkghistory() { rcpinfo.packages = packages rcpinfo.layer = layer rcpinfo.config = sortlist(oe.utils.squashspaces(d.getVar('PACKAGECONFIG') or "")) + rcpinfo.src_uri = oe.utils.squashspaces(d.getVar('SRC_URI') or "") write_recipehistory(rcpinfo, d) bb.build.exec_func("read_subpackage_metadata", d) @@ -368,6 +370,7 @@ def write_recipehistory(rcpinfo, d): f.write(u"PACKAGES = %s\n" % rcpinfo.packages) f.write(u"LAYER = %s\n" % rcpinfo.layer) f.write(u"CONFIG = %s\n" % rcpinfo.config) + f.write(u"SRC_URI = %s\n" % rcpinfo.src_uri) write_latest_srcrev(d, pkghistdir)