DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: "Michael Tretter" <m.tretter@pengutronix.de>,
	"Uwe Kleine-König" <ukl@pengutronix.de>,
	distrokit@pengutronix.de,
	"Marc Kleine-Budde" <mkl@pengutronix.de>,
	"Lucas Stach" <l.stach@pengutronix.de>
Subject: Re: [DistroKit] [PATCH v2] platform-v8a: kernelconfig: cleanup
Date: Thu, 25 Jan 2024 17:06:17 +0100	[thread overview]
Message-ID: <ZbKG-cZVqrBio9Jw@pengutronix.de> (raw)
In-Reply-To: <20240125-93ea0e34689998dec1d2321b@ifak-system.com>

Hi,

On Thu, Jan 25, 2024 at 04:30:37PM +0100, Alexander Dahl wrote:
> Am Thu, Jan 25, 2024 at 04:25:47PM +0100 schrieb Michael Tretter:
> > On Thu, 25 Jan 2024 09:42:53 +0100, Michael Olbrich wrote:
> > > This is the result of a review of the whole kernel config.
> > > The options have been selected by the following rules:
> > > 
> > > In general, the kernel config is optimized to keep the kernel small. So
> > > any features that are not used at all are disabled. This includes things
> > > like extra scheduling governors that require explicit configuration to
> > > be used.
> > > 
> > > All drivers that are not used by the boards configured in DistroKit are
> > > now disabled.
> > > 
> > > If there was no other strong preference then the value from the
> > > defconfig was used.
> > > 
> > > Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> > > Cc: Lucas Stach <l.stach@pengutronix.de>
> > > Cc: Marc Kleine-Budde <mkl@pengutronix.de>
> > > ---
> > > 
> > > Changes in v2:
> > >  - reenabled CONFIG_BLK_DEV_INITRD as requested by Ahmad
> > >  - enabled CONFIG_CRYPTO_DEV_SAFEXCEL with its dependencies. It's the
> > >    only driver from Uwes list that was not already enable.
> > > 
> > >  configs/platform-v8a/kernelconfig | 2249 +++++------------------------
> > >  1 file changed, 357 insertions(+), 1892 deletions(-)
> > > 
> > > diff --git a/configs/platform-v8a/kernelconfig b/configs/platform-v8a/kernelconfig
> > > index a37fd1e62a26..8dd0a0ceb7ee 100644
> > > --- a/configs/platform-v8a/kernelconfig
> > > +++ b/configs/platform-v8a/kernelconfig
> > [...]
> > > @@ -3220,29 +2490,26 @@ CONFIG_GPIOLIB=y
> > >  CONFIG_GPIOLIB_FASTPATH_LIMIT=512
> > >  CONFIG_OF_GPIO=y
> > >  CONFIG_GPIOLIB_IRQCHIP=y
> > > -CONFIG_OF_GPIO_MM_GPIOCHIP=y
> > >  # CONFIG_DEBUG_GPIO is not set
> > >  # CONFIG_GPIO_SYSFS is not set
> > >  CONFIG_GPIO_CDEV=y
> > > -CONFIG_GPIO_CDEV_V1=y
> > > +# CONFIG_GPIO_CDEV_V1 is not set
> > 
> > Disabling CONFIG_GPIO_CDEV_V1 breaks compatibility with libgpiod < 2.0.  As
> > PTXdist currently has libgpiod 1.6.3, trying to use the gpio tools with this
> > configuration won't work. The kernel also enables CDEV_V1 by default. Given
> > that libgpiod is disabled in DistroKit, I am not sure how relevant this is.
> 
> We use DistroKit as a base layer and in our higher layers we do use the
> libgpiod command line tools as well as the library itself.  It is no
> big deal because we of course have an adapted kernelconfig anyways,
> but maybe it is nice to know for you?

It's good to know and we should definitely keep this enabled. I'm somewhat
confused, why it is disabled here in the first place. It is enabled in the
defconfig so we didn't drop it during that sync and I cannot remember
disabling it manually... Strange. But that's why we have review here :-).
I'll send a new version.

Regards,
Michael



-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



      reply	other threads:[~2024-01-25 16:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-25  8:42 Michael Olbrich
2024-01-25 15:25 ` Michael Tretter
2024-01-25 15:30   ` Alexander Dahl
2024-01-25 16:06     ` Michael Olbrich [this message]

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=ZbKG-cZVqrBio9Jw@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=m.tretter@pengutronix.de \
    --cc=mkl@pengutronix.de \
    --cc=ukl@pengutronix.de \
    /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