All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Kory Maincent <kory.maincent@bootlin.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/8] boot/grub2: add support to build multiple Grub2 configurations in the same build
Date: Sat, 18 Sep 2021 11:54:56 +0200	[thread overview]
Message-ID: <20210918095456.GI1053080@scaer> (raw)
In-Reply-To: <20210918105042.7a0887cd@windsurf>

Thomas, Köry, All,

On 2021-09-18 10:50 +0200, Thomas Petazzoni spake thusly:
> On Fri, 17 Sep 2021 23:24:29 +0200
> "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> > What you forgot to state in bold fat characters here, is that we can no
> > longer use autotools-package as a consequence of this multi-build, and
> > that we have to resort to generic-pacakge and a partial duplication of
> > the autotools-infra.
[--SNIP--]
> > If I understand correctly, we are in a similar situation with grub2, and
> > there are only ever at most two "platforms" we can build, and it does
> > not look like it will ever change:
[--SNIP--]
> >     x86_64:
> >         BR2_TARGET_GRUB2_I386_EFI
> >         BR2_TARGET_GRUB2_X86_64_EFI
> On x86-64, we can have:
> 	BR2_TARGET_GRUB2_I386_PC
> 	BR2_TARGET_GRUB2_I386_EFI
> 	BR2_TARGET_GRUB2_X86_64_EFI
> 
> to cover legacy BIOS platforms (32-bit), 32-bit EFI BIOS and 64-bit EFI
> BIOS. Dans this is precisely the use-case we are in fact interested in.
> 
> So that means we would need 3 Grub packages, which is the reason why it
> felt much more reasonable to just extend the grub2 package itself.

Arg, I indeed missed the BR2_TARGET_GRUB2_I386_PC for x86-64, which
indeed basically invalidates the two-package solution, and the
three-package alternative is not a viable solution either...

[--SNIP--]
> > > -$(eval $(autotools-package))
> > > +$(eval $(generic-package))  
> > This is my main problem: we're mostly duplicating bits and pieces of the
> > autotolls-package infra, which means we *will* fall behind very quickly
> > when we have to update said infra, and those changes will not percolate
> > to this grub2 package.
> That is true, but on the other hand, grub2 is not the typical
> user-space autotools package either.
[--SNIP--]
> So even though we do use autotools-package, it's not like we don't
> already have to play quite a few tricks to get it to do the right thing
> with the weirdness of grub2.

That's true.

Köry: when you respin, in addition to the other points, can you extend
the commit log with a summary of the explanations from Thomas, on why a
multi-package solution like barebox is not viable, and that grub2 is
already pretty special anyway, please?

Thanks!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2021-09-18  9:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-14  9:34 [Buildroot] [PATCH 0/8] Add support for ISO9660 image compatible with Legacy and EFI BIOS Kory Maincent
2021-09-14  9:34 ` [Buildroot] [PATCH 1/8] boot/grub2: add support to build multiple Grub2 configurations in the same build Kory Maincent
2021-09-17 21:24   ` Yann E. MORIN
2021-09-18  8:50     ` Thomas Petazzoni
2021-09-18  9:54       ` Yann E. MORIN [this message]
2021-09-14  9:34 ` [Buildroot] [PATCH 2/8] package/xorriso: build host variant with zlib support Kory Maincent
2021-09-17 19:52   ` Yann E. MORIN
2021-09-14  9:34 ` [Buildroot] [PATCH 3/8] fs/iso9660: switch from cdrkit to xorriso to build ISO9660 images Kory Maincent
2021-09-17 20:17   ` Yann E. MORIN
2021-09-14  9:34 ` [Buildroot] [PATCH 4/8] fs/iso9660: add support to Grub EFI bootloader in the image Kory Maincent
2021-09-18 12:19   ` Yann E. MORIN
2021-09-14  9:34 ` [Buildroot] [PATCH 5/8] fs/iso9660: add support for hybrid image using Grub bootloader on BIOS and EFI Kory Maincent
2021-09-14  9:34 ` [Buildroot] [PATCH 6/8] support/testing/infra/emulator.py: update encoding when calling qemu Kory Maincent
2021-09-14  9:34 ` [Buildroot] [PATCH 7/8] package/edk2-images: new package Kory Maincent
2021-09-17 13:43   ` D. Olsson via buildroot
2021-09-17 14:14     ` Thomas Petazzoni
2021-09-17 19:24       ` Yann E. MORIN
2021-09-14  9:34 ` [Buildroot] [PATCH 8/8] support/testing/tests/fs/test_iso9660.py: add support to test using EFI BIOS Kory Maincent

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=20210918095456.GI1053080@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=kory.maincent@bootlin.com \
    --cc=thomas.petazzoni@bootlin.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.