On Wed, Nov 14, 2018 at 06:27:38PM +0100, Alexander Graf wrote: > This patch adds support for RISC-V to the grub build system. With this > patch, I can successfully build grub on RISC-V as a UEFI application. > > Signed-off-by: Alexander Graf <ag...@suse.de> > Reviewed-by: Alistair Francis <alistair.fran...@wdc.com>
[...] > diff --git a/grub-core/kern/compiler-rt.c b/grub-core/kern/compiler-rt.c > index 5cfcb3907..6ae1c6844 100644 > --- a/grub-core/kern/compiler-rt.c > +++ b/grub-core/kern/compiler-rt.c > @@ -237,7 +237,8 @@ union component64 > }; > }; > > -#if defined (__powerpc__) || defined (__arm__) || defined(__mips__) > +#if defined (__powerpc__) || defined (__arm__) || defined(__mips__) || \ > + (defined(__riscv) && (__riscv_xlen == 32)) s/__riscv/__riscv__/? and s/__riscv_xlen/__riscv_xlen__/? Here and in other places if possible. Daniel _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel