On Wed, May 10, 2023 at 12:40:30PM +0200, Ard Biesheuvel wrote:
> On Tue, 9 May 2023 at 18:53, Ard Biesheuvel <a...@kernel.org> wrote:
> >
> > Switch the x86_64 build to the generic EFI loader, which exposes the
> > initrd via the LoadFile2 protocol instead of the x86-specific setup
> > header. This will launch the Linux kernel via its EFI stub, which
> > performs its own initialization in the EFI boot services context before
> > calling ExitBootServices() and performing the bare metal Linux boot.
> >
> > Signed-off-by: Ard Biesheuvel <a...@kernel.org>
> > ---
> >  grub-core/Makefile.core.def  |  6 +-----
> >  grub-core/kern/efi/mm.c      |  2 +-
> >  grub-core/loader/efi/linux.c | 12 ++++++++++++
> >  include/grub/efi/efi.h       |  2 ++
> >  4 files changed, 16 insertions(+), 6 deletions(-)
> >
> > diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def
> > index c17d022195b3fdca..f9e89a0cc4389dd0 100644
> > --- a/grub-core/Makefile.core.def
> > +++ b/grub-core/Makefile.core.def
> > @@ -1822,7 +1822,6 @@ module = {
> >
> >  module = {
> >    name = linux;
> > -  x86 = loader/i386/linux.c;
> >    i386_xen_pvh = loader/i386/linux.c;
> >    xen = loader/i386/xen.c;
> >    i386_pc = lib/i386/pc/vesa_modes_table.c;
> > @@ -1832,11 +1831,8 @@ module = {
> >    sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c;
> >    ia64_efi = loader/ia64/efi/linux.c;
> >    arm_coreboot = loader/arm/linux.c;
> > -  arm_efi = loader/efi/linux.c;
> > +  efi = loader/efi/linux.c;
>
> This change breaks the build for i386_efi. Any suggestions on how to
> rephrase this?

I will do more test builds in the following days and get back to you
with results. And probably some fixes...

Anyway, thank you for making this patch set.

Daniel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to