All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC/next v2 1/2] package/rpi-firmware: rework boot/config file handling
Date: Tue, 9 Mar 2021 21:32:46 +0100	[thread overview]
Message-ID: <20210309213246.382d07b4@gmx.net> (raw)
In-Reply-To: <20210308222753.GE2737665@scaer>

Hello Yann,

On Mon, 8 Mar 2021 23:27:53 +0100, "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:

> Peter, All,
>
> On 2021-03-08 23:14 +0100, Peter Seiderer spake thusly:
> > On Mon, 8 Mar 2021 22:55:41 +0100, "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> > > On 2021-02-16 21:11 +0100, Peter Seiderer spake thusly:
> > > > Try to be less smart (focused on the one target/one use-case),
> > > > instead reduce the rpi-firmware package to a selectable list
> > > > of (verbatim) installed firmware files.
> [--SNIP--]
> > > So, let's keep the qt5 example aside, and see what we can do. What if
> > > we'd go with the following:
> > >
> > >   - keep a single, generic config.txt in rpi-firmware, and install that,
> > >
> > >   - if BR2_aarch64=y, add arm_64bit=1
> > >
> > >   - add an option to rpi-firmware:
> > >
> > >     config BR2_PKG_RPI_FW_DTOVERLAY_LIST
> > >         string "DT overlays to load"
> > >         depends on BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
> > >         help
> > >           Space-separated list of DT overlays to be loaded from config.txt.
> > >
> > >           For example, miniuart-bt on rpi0w to restore the serial console.
> > >
> > >     and if this option is not empty, construct the list of dtoverlay and
> > >     add it to config.txt.
> > >
> > >   - eventually, adapt the defconfigs with that list of dtoverlays
> >
> > ...but back to the direction of trying to being smart..., which can work for
> > 90% of the buildroot defconfig cases, but will not work for the rest of the
> > buildroot ones (one at the moment) and not for customized ones (none dtoverlay
> > extensions, multi-bootable SD-Cards, ...)...
>
> I would think quite the opposite, in fact: with an otion, it's up to the
> user to specify what DT overlays to load; this is more flexible than a
> config.txt file.

More flexible than the possibility for a custom config.txt (mind that there
are overlays with parameters and more possible options besides the overlays)?

>
> For fixup.dat and start/elf, we'd still use your changes, of course.
>
> And for arm_64bit=1 this is really a non-option: if we build for 64-bit
> then we *must* have arm_64bit=1, while if we build for 32-bit, the we
> *must not* have arm_64bit=1.
>
> The only case that this indeed does not cover, is the case where the
> user wants to pas their completely customsied config.txt that totally
> differs from ours. In that case, they can still do so with a post-build
> script that copies their config.txt over ours in BINARIES_DIR.

The part with 'override' feels a little bit ugly and would count for me as
an argument against the hard-coded logic/overlays-only approach, still
believing that sooner or later most/every beyond-buildroot-defconfig-only
user will use a hand-crafted config.txt file...

Regards,
Peter


>
> Regards,
> Yann E. MORIN.
>

  reply	other threads:[~2021-03-09 20:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 20:11 [Buildroot] [RFC/next v2 1/2] package/rpi-firmware: rework boot/config file handling Peter Seiderer
2021-02-16 20:11 ` [Buildroot] [RFC/next v2 2/2] package/rpi-firmware: add option for the debug set of start/fixup boot files Peter Seiderer
2021-02-17  9:21 ` [Buildroot] [RFC/next v2 1/2] package/rpi-firmware: rework boot/config file handling Stefan Agner
2021-03-08 21:55 ` Yann E. MORIN
2021-03-08 22:14   ` Peter Seiderer
2021-03-08 22:27     ` Yann E. MORIN
2021-03-09 20:32       ` Peter Seiderer [this message]
2021-03-09 21:29         ` Yann E. MORIN
2021-03-09 21:35           ` Yann E. MORIN
2021-03-18 22:25           ` Peter Seiderer
2021-03-20 22:09             ` Yann E. MORIN
2021-03-21 12:00               ` Peter Seiderer
2021-03-08 22:04 ` Yann E. MORIN
2021-03-09 20:25   ` Peter Seiderer
2021-03-09 20:33     ` Yann E. MORIN

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=20210309213246.382d07b4@gmx.net \
    --to=ps.report@gmx.net \
    --cc=buildroot@busybox.net \
    /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.