diff options
| author | Paul Eggleton <paul.eggleton@microsoft.com> | 2020-10-18 21:03:56 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-20 11:11:46 +0100 |
| commit | 71191e8e7aa36049685dd72b62c2e78495d6b401 (patch) | |
| tree | c6172b6c0fe5325a0a258ef9d20d041451a00bea /meta/classes/buildhistory.bbclass | |
| parent | fef9e98ead9c71c08104e6ac50838f16b1c341bb (diff) | |
| download | poky-71191e8e7aa36049685dd72b62c2e78495d6b401.tar.gz | |
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.
(From OE-Core rev: 70714795aafc98a6df1df7f944867093eb8cafc7)
Signed-off-by: Paul Eggleton <paul.eggleton@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
| -rw-r--r-- | meta/classes/buildhistory.bbclass | 3 |
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() { | |||
| 116 | self.srcrev = "" | 116 | self.srcrev = "" |
| 117 | self.layer = "" | 117 | self.layer = "" |
| 118 | self.config = "" | 118 | self.config = "" |
| 119 | self.src_uri = "" | ||
| 119 | 120 | ||
| 120 | 121 | ||
| 121 | class PackageInfo: | 122 | class PackageInfo: |
| @@ -258,6 +259,7 @@ python buildhistory_emit_pkghistory() { | |||
| 258 | rcpinfo.packages = packages | 259 | rcpinfo.packages = packages |
| 259 | rcpinfo.layer = layer | 260 | rcpinfo.layer = layer |
| 260 | rcpinfo.config = sortlist(oe.utils.squashspaces(d.getVar('PACKAGECONFIG') or "")) | 261 | rcpinfo.config = sortlist(oe.utils.squashspaces(d.getVar('PACKAGECONFIG') or "")) |
| 262 | rcpinfo.src_uri = oe.utils.squashspaces(d.getVar('SRC_URI') or "") | ||
| 261 | write_recipehistory(rcpinfo, d) | 263 | write_recipehistory(rcpinfo, d) |
| 262 | 264 | ||
| 263 | bb.build.exec_func("read_subpackage_metadata", d) | 265 | bb.build.exec_func("read_subpackage_metadata", d) |
| @@ -368,6 +370,7 @@ def write_recipehistory(rcpinfo, d): | |||
| 368 | f.write(u"PACKAGES = %s\n" % rcpinfo.packages) | 370 | f.write(u"PACKAGES = %s\n" % rcpinfo.packages) |
| 369 | f.write(u"LAYER = %s\n" % rcpinfo.layer) | 371 | f.write(u"LAYER = %s\n" % rcpinfo.layer) |
| 370 | f.write(u"CONFIG = %s\n" % rcpinfo.config) | 372 | f.write(u"CONFIG = %s\n" % rcpinfo.config) |
| 373 | f.write(u"SRC_URI = %s\n" % rcpinfo.src_uri) | ||
| 371 | 374 | ||
| 372 | write_latest_srcrev(d, pkghistdir) | 375 | write_latest_srcrev(d, pkghistdir) |
| 373 | 376 | ||
