grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/5] Fix non-x86 builds after verifiers framework merged


From: Leif Lindholm
Subject: Re: [PATCH 0/5] Fix non-x86 builds after verifiers framework merged
Date: Fri, 16 Nov 2018 15:20:03 +0000
User-agent: NeoMutt/20170113 (1.7.2)

On Fri, Nov 16, 2018 at 03:05:22PM +0100, Daniel Kiper wrote:
> On Wed, Nov 14, 2018 at 07:29:14PM +0000, Leif Lindholm wrote:
> > The verifiers framework caused some breakage for non-x86
> > platforms that need fixing.
> >
> > Basically, this boils down to:
> > - Add an include guard for verify.h.
> > - Add a new file type for device tree blobs.
> > - Fix an error added to arm64/linux.c.
> > - Add file types to grub_file_open calls.
> >
> > Note: only the common and arm64 fixes have actually been tested.
> >
> > Fu Wei, Julien - can you guys have a look at fixing arm64/xen_boot.c?
> > I'm not 100% certain how multiboot should be handled.
> >
> > Cc: Fu Wei <address@hidden>
> > Cc: Julien Grall <address@hidden>
> > Reported-by: Alexander Graf <address@hidden>
> 
> Thanks a lot! Pushed!
> 
> By the way, have you cross compiled GRUB2 ARM stuff on x86? I would
> like to add ARM builds to my test suite and I do not want to reinvent
> the wheel.

Yeah, when I started in 2012, we didn't exactly have arm64 hardware :)

(And sometimes these days I'm still on x86.)

--target=aarch64-linux-gnu or --target=arm-linux-gnueabihf "just
works" with the caveat that 32-bit defaults to the U-Boot API version,
so needs --with-platform=efi for building the UEFI (including U-Boot)
flavour.

Several distros package cross compilation toolchains for both above
targets. Otherwise, latest (gcc 8) can be found at
https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads
and less bleeding edge ones can be found under
https://releases.linaro.org/components/toolchain/binaries/

My smoke test is building an image with grub-mkstandalone and loading
a distro kernel/initrd in qemu with EDK2 images from
https://releases.linaro.org/reference-platform/enterprise/firmware/18.02/release/

qemu-system-arm -M virt -cpu cortex-a15 -m 1024M -bios QEMU_EFI.fd -hda 
fat:rw:fatdir/ -nographic -net none
qemu-system-aarch64 -M virt -cpu cortex-a57 -m 1024M -bios QEMU_EFI.fd -hda 
fat:rw:fatdir/ -nographic -net none

(I do that even when building/testing natively.)

/
    Leif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]