summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@microsoft.com>2020-10-12 20:09:45 +0000
committerPaul Eggleton <paul.eggleton@linux.microsoft.com>2020-10-18 20:59:50 -0700
commite83e7133cc7affdc013455744f1bc31d83503757 (patch)
treecb42492c761d2936d0e3ef9078aff4d3d666f61b
parent1f26495884b8f567aecadc5936651846dfeed3f5 (diff)
downloadopenembedded-core-contrib-e83e7133cc7affdc013455744f1bc31d83503757.tar.gz
openembedded-core-contrib-e83e7133cc7affdc013455744f1bc31d83503757.tar.bz2
openembedded-core-contrib-e83e7133cc7affdc013455744f1bc31d83503757.zip
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 <paul.eggleton@microsoft.com>
-rw-r--r--meta/classes/buildhistory.bbclass3
1 files changed, 3 insertions, 0 deletions
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)