[v5 PATCH 0/3] Unify ARM64 & RISC-V Linux Loader

2022-10-07 Thread Atish Patra
This series unifies the linux loader for ARM64 & RISC-V. The linux loader for ARM64 is pretty much arch independent. Thus, this series just moves it to the common directory and update the make files. This series is rebased on top of Ard's LoadFile2 series[1]. The unification effort was a little m

[v5 PATCH 1/3] loader: Move arm64 linux loader to common code

2022-10-07 Thread Atish Patra
ARM64 linux loader code is written in such a way that it can be reused across different architectures without much change. Move it to common code so that RISC-V doesn't have to define a separate loader. Reviewed-by: Daniel Kiper Signed-off-by: Atish Patra --- grub-core/Makefile.core.def

[v5 PATCH 3/3] RISC-V: Use common linux loader

2022-10-07 Thread Atish Patra
RISC-V doesn't have to do anything very different from other architectures to loader EFI stub linux kernel. As a result, just use the common linux loader instead of defining a RISC-V specific linux loader. Signed-off-by: Atish Patra --- grub-core/Makefile.core.def| 4 +-- grub-core/loader/r

[v5 PATCH 2/3] RISC-V: Update image header

2022-10-07 Thread Atish Patra
Update the RISC-V Linux kernel image headers as per the current header. Reference: /Documentation/riscv/boot-image-header.rst 474efecb65dc: ("riscv: modify the Image header to improve compatibility with the ARM64 header") Acked-by: Heinrich Schuchardt Signed-off-by: Atish Patra --- include/g