All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>,
	"oss@ew.tq-group.com" <oss@ew.tq-group.com>
Subject: Re: [OE-core] [PATCH] kernel.bbclass: install .config to deploy dir
Date: Wed, 7 Feb 2024 15:33:33 +0200	[thread overview]
Message-ID: <ZcOGrdeSLp2e_291@nuoska> (raw)
In-Reply-To: <d8b9db15ae3ff57b6a34cc1a0278d208d588a773.camel@ew.tq-group.com>

Hi,

On Wed, Feb 07, 2024 at 02:14:33PM +0100, Matthias Schiffer wrote:
> On Wed, 2024-02-07 at 12:42 +0000, Bruce Ashfield wrote:
> > On Wed, Feb 7, 2024 at 5:26 AM Matthias Schiffer
> > <matthias.schiffer@ew.tq-group.com> wrote:
> > > 
> > > Deploy the kernel configuration with the built images, so it is easy to
> > > check its contents, or rebuild the same configuration outside of the
> > > Yocto build system.
> > > 
> > 
> > I'm not convinced we need yet more clutter in the deploy directory, but
> > at a minimum, this patch also needs an update to the documentation
> > (apologies if I missed it on the docs list).
> 
> Sorry about the missing docs, I'll provide a patch for that as well.
> 
> > 
> > One could argue that the config could be pulled out of the other
> > packages and artifacts, and that it wouldn't be recommended to
> > use that config for rebuilding outside of yocto, as we aren't providing
> > the matching sources in the deploy directory.
> 
> There are at least some cases where the config can't be pulled out of anything else - without
> CONFIG_IKCONFIG, the config is not embedded in the built kernel images. In constrained environments,
> it may be desirable to disable such options to reduce the kernel size.
> 
> As a data point from other distros, Debian/Ubuntu disable CONFIG_IKCONFIG and instead provide the
> config next to the kernel images in /boot.

Check the kernel-dev package. The config is there.

> > 
> > I would also be nice in the commit log to indicate how cleanup of the
> > deploydir has been tested to show that we won't end up with config*
> > files and links in the directory after their associated images have been
> > removed. (I haven't looked at the deploy classes in quite some time,
> > so I'm unsure if anything in particular needs to be done).
> 
> My understanding is that unclean deploy dir issues are pretty much a thing of the past, as
> deploy.bbclass sets `do_deploy[cleandirs] = "${DEPLOYDIR}"` (so do_deploy always starts with
> a pristine destination directory), and the sstate tracking takes care of the rest. 

I agree that deploy directories have way too many things already. And recipes often get it wrong trying
to pass files through it from providers to users without setting task dependendencies and sstate caching
correctly.

Cheers,

-Mikko


  reply	other threads:[~2024-02-07 13:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-07 10:25 [PATCH] kernel.bbclass: install .config to deploy dir Matthias Schiffer
2024-02-07 12:42 ` [OE-core] " Bruce Ashfield
2024-02-07 13:14   ` Matthias Schiffer
2024-02-07 13:33     ` Mikko Rapeli [this message]
2024-02-07 13:51       ` Bruce Ashfield
2024-02-07 15:58 ` Ross Burton
2024-02-08  8:50   ` Matthias Schiffer
2024-02-08  9:31     ` Jose Quaresma
2024-02-08 13:54 ` Jörg Sommer
2024-02-08 23:16   ` Alexandre Belloni
2024-02-09  7:25     ` Jörg Sommer

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=ZcOGrdeSLp2e_291@nuoska \
    --to=mikko.rapeli@linaro.org \
    --cc=bruce.ashfield@gmail.com \
    --cc=matthias.schiffer@ew.tq-group.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=oss@ew.tq-group.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.