summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2020-06-03 10:12:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-04 13:27:32 +0100
commite4faf3b3d00ec11e39e76120617e5a782c322920 (patch)
tree297e967c528e76e5d052fd10360f62867af77b01 /meta/classes/buildhistory.bbclass
parent373c2637c31218b094dff60254ead7f977bc0e6e (diff)
downloadpoky-e4faf3b3d00ec11e39e76120617e5a782c322920.tar.gz
classes/buildhistory: capture package config
As the PACKAGECONFIG variable has a large influence on the resulting package sizes and dependencies, it's useful to capture it in the recipe-level buildhistory. This makes it straightforward to analyze the impact of PACKAGECONFIG changes on the resulting image size. (From OE-Core rev: 189fae9f2df58759e9d66a3877c9ef30df4854bf) Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-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 eb7295570d..a4288ef9e1 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -113,6 +113,7 @@ python buildhistory_emit_pkghistory() {
113 self.packages = "" 113 self.packages = ""
114 self.srcrev = "" 114 self.srcrev = ""
115 self.layer = "" 115 self.layer = ""
116 self.config = ""
116 117
117 118
118 class PackageInfo: 119 class PackageInfo:
@@ -254,6 +255,7 @@ python buildhistory_emit_pkghistory() {
254 rcpinfo.depends = sortlist(oe.utils.squashspaces(d.getVar('DEPENDS') or "")) 255 rcpinfo.depends = sortlist(oe.utils.squashspaces(d.getVar('DEPENDS') or ""))
255 rcpinfo.packages = packages 256 rcpinfo.packages = packages
256 rcpinfo.layer = layer 257 rcpinfo.layer = layer
258 rcpinfo.config = sortlist(oe.utils.squashspaces(d.getVar('PACKAGECONFIG') or ""))
257 write_recipehistory(rcpinfo, d) 259 write_recipehistory(rcpinfo, d)
258 260
259 pkgdest = d.getVar('PKGDEST') 261 pkgdest = d.getVar('PKGDEST')
@@ -368,6 +370,7 @@ def write_recipehistory(rcpinfo, d):
368 f.write(u"DEPENDS = %s\n" % rcpinfo.depends) 370 f.write(u"DEPENDS = %s\n" % rcpinfo.depends)
369 f.write(u"PACKAGES = %s\n" % rcpinfo.packages) 371 f.write(u"PACKAGES = %s\n" % rcpinfo.packages)
370 f.write(u"LAYER = %s\n" % rcpinfo.layer) 372 f.write(u"LAYER = %s\n" % rcpinfo.layer)
373 f.write(u"CONFIG = %s\n" % rcpinfo.config)
371 374
372 write_latest_srcrev(d, pkghistdir) 375 write_latest_srcrev(d, pkghistdir)
373 376