Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Mikko Rapeli" <mikko.rapeli@bmw.de>
To: <jlu@pengutronix.de>
Cc: <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core][PATCH] classes/buildhistory: capture package config
Date: Mon, 15 Jun 2020 11:29:38 +0000	[thread overview]
Message-ID: <20200615112937.GF108868@korppu> (raw)
In-Reply-To: <20200603081237.1959-1-jlu@pengutronix.de>


On Wed, Jun 03, 2020 at 10:12:37AM +0200, Jan Luebbe wrote:
> 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.

Thanks, this is a good idea! I would print using full PACKAGECONFIG name
to avoid any confusion.

And this reminds me that DISTRO_FEATURES isn't logged into buildhistory either
afaik...

A generic approach for adding more variables to buildhistory would be nice.

-Mikko

> 
> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
> ---
>  meta/classes/buildhistory.bbclass | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
> index eb7295570dbd..a4288ef9e1f5 100644
> --- a/meta/classes/buildhistory.bbclass
> +++ b/meta/classes/buildhistory.bbclass
> @@ -113,6 +113,7 @@ python buildhistory_emit_pkghistory() {
>              self.packages = ""
>              self.srcrev = ""
>              self.layer = ""
> +            self.config = ""
>
>
>      class PackageInfo:
> @@ -254,6 +255,7 @@ python buildhistory_emit_pkghistory() {
>      rcpinfo.depends = sortlist(oe.utils.squashspaces(d.getVar('DEPENDS') or ""))
>      rcpinfo.packages = packages
>      rcpinfo.layer = layer
> +    rcpinfo.config = sortlist(oe.utils.squashspaces(d.getVar('PACKAGECONFIG') or ""))
>      write_recipehistory(rcpinfo, d)
>
>      pkgdest = d.getVar('PKGDEST')
> @@ -368,6 +370,7 @@ def write_recipehistory(rcpinfo, d):
>          f.write(u"DEPENDS = %s\n" %  rcpinfo.depends)
>          f.write(u"PACKAGES = %s\n" %  rcpinfo.packages)
>          f.write(u"LAYER = %s\n" %  rcpinfo.layer)
> +        f.write(u"CONFIG = %s\n" %  rcpinfo.config)
>
>      write_latest_srcrev(d, pkghistdir)
>
> -- 
> 2.27.0
> 

> 

  reply	other threads:[~2020-06-15 11:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03  8:12 [OE-core][PATCH] classes/buildhistory: capture package config Jan Luebbe
2020-06-15 11:29 ` Mikko Rapeli [this message]
2020-06-15 12:17   ` Jan Luebbe
2020-06-15 13:55     ` Mikko Rapeli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200615112937.GF108868@korppu \
    --to=mikko.rapeli@bmw.de \
    --cc=jlu@pengutronix.de \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox