All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann Dirson" <yann.dirson@blade-group.com>
To: Trevor Woerner <twoerner@gmail.com>
Cc: Yocto discussion list <yocto@yoctoproject.org>,
	Yann Dirson <yann@blade-group.com>
Subject: [yocto] [meta-rockchip] defconfig alternatives
Date: Tue, 23 Mar 2021 12:59:24 +0100	[thread overview]
Message-ID: <CA+4=imbGcUVwsz3kF411s1OeSRL=vrWt=Cpsb-3ud+P-86nkTw@mail.gmail.com> (raw)
In-Reply-To: <20210322155021.GA23379@localhost>

Hi Trevor,

Le lun. 22 mars 2021 à 16:50, Trevor Woerner <twoerner@gmail.com> a écrit :
> > BTW, I'm also unclear on what to do next to better support those
> > boards: with the default
> > kernel config only a subset of the hardware is supported, and for
> > state-of-the-art hw
> > support we'll also need patches not yet in upstream kernel (from eg.
> > armbian and libreelec).
> >
> > I feel it would be good to provide defconfig files for those machines,
> > but then there are
> > several options to handle that.  Would a minimal hw-focused defconfig
> > suitable for
> > `KCONFIG_MODE = "--allnoconfig"` be a good option ?
>
> I feel exactly the same way.
>
> By default all arm64 kernels are configured with the one, in-kernel, generic
> arm64 defconfig. That gives me a kernel that is over 11MB in size, and
> includes all sorts of useless drivers.
>
> I've been working off-and-on on a mechanism for meta-rockchip that would allow
> users to decide between the default in-kernel arm64 defconfig (which would
> be selected by doing nothing) or using a leaner defconfig that I have been
> tweaking specifically for each board. Currently I only have a lean defconfig
> for rock-pi-4b, but it was my hope to generate defconfigs for all supported
> boards.
>
> Ideally I had wanted to leverage the linux-yocto kmeta mechanism to generate
> defconfigs dynamically based on the specific machine and specific user
> preferences, but that didn't go as smoothly as I was hoping, then I got
> distracted by other things.
>
> I had created a spreadsheet with a comparison between the various boards that
> would have been a basis for the individual kmeta pieces. Maybe I'll find some
> more time to poke at it later this week. I could also push my WIP stuff to
> somewhere if you'd like to take a look.
>
> In any case, my point is, I'm very interested in something better than what
> currently exists :-)

On my side I have a minimal defconfig for our own board, which is very similar
to the nanopi-m4, which could be used as a starting point for the latter.


> One thing that I'd like to keep clear in meta-rockchip is to always allow the
> user to choose between upstream and "extras". My feeling is: the simplest
> build, if the user does nothing explicit, will always pull from pure upstream
> with no out-of-tree patches or vendor pieces. But I'm not opposed to having
> a mechanism whereby if the user does something explicit, they can choose to
> use a vendor tree or make use of out-of-tree patches for various things.

One possibility would be using a KERNEL_CONFIG_VARIANT variable, whose
values would select consistent sets of KBUILD_DEFCONFIG + KCONFIG_MODE
+ SRC_URI_append.  Standard variants could include "mainline" as the
default, and
maybe "customhw" which would bring just the hw features for the board
in allnoconfig
mode.

Or maybe we could try to fit such a selection mechanism in the PACKAGECONFIG
system, but I'm not sure it would really fit.



-- 
Yann Dirson <yann@blade-group.com>
Blade / Shadow -- http://shadow.tech

  reply	other threads:[~2021-03-23 11:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-22 13:42 [meta-rockchip][PATCH] Add machine definitions for NanoPi-M4 boards Yann Dirson
2021-03-22 14:47 ` Trevor Woerner
2021-03-22 14:59   ` Yann Dirson
2021-03-22 16:19     ` Trevor Woerner
2021-03-22 18:24     ` [yocto] " Joshua Watt
2021-03-22 19:30       ` Yann Dirson
2021-03-22 19:39         ` Joshua Watt
     [not found]   ` <166EB22A27C12C43.28220@lists.yoctoproject.org>
2021-03-22 15:31     ` Yann Dirson
2021-03-22 15:50       ` Trevor Woerner
2021-03-23 11:59         ` Yann Dirson [this message]
2021-03-24  0:40           ` [yocto] [meta-rockchip] defconfig alternatives Trevor Woerner
2021-03-25 17:10             ` Yann Dirson
     [not found]             ` <166FA50C98CCB357.21604@lists.yoctoproject.org>
2021-04-01  9:17               ` Yann Dirson

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='CA+4=imbGcUVwsz3kF411s1OeSRL=vrWt=Cpsb-3ud+P-86nkTw@mail.gmail.com' \
    --to=yann.dirson@blade-group.com \
    --cc=twoerner@gmail.com \
    --cc=yann@blade-group.com \
    --cc=yocto@yoctoproject.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 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.