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 also removes the arch specific kernel image haders for ARM64, RISC-V, ARM as suggested on v6[1].I have verified with coreboot, efi platform options for ARM. I am not that well versed with ARM options. If it causes any more build failure, please scream at me again :). This series has been tested with OpenSuse image in Qemu for RISC-V. For ARM64,ARM it has been compile tested only. It would be good to get more testing on ARM64 and real RISC-V boards as well. [1] https://lists.gnu.org/archive/html/grub-devel/2022-11/msg00042.html @Daniel: I have not added your RB tag in PATCH 2 as it is changed a bit after the last round of discussion around ARM headers. Changes from v7->v8: 1. Removed the arch specific header for ARM as well. 2. Fixed ARM64 load image header with random COFF header placement. 3. Added few grub distro folks for more visibility. Sorry for spam :). Changes from v6->v7: 1. Rebased on top of the latest upstream. 2. Addressed all the comments on v6. 3. Removed arch specific image header files for ARM64 & RISC-V. Changes from v5->v6: 1. Rebased on top of Ard's latest LoadFile2 series. Changes from v4->v5: 1. Removed redundant macros from header file and updated the rv32 kernel header structure. Changes from v3->V4: 1. Added all the comments on v3. 2. Dropped LoadFile2 patches as Ard's series[1] updated those patches Atish Patra (3): loader: Move arm64 linux loader to common code efi: Remove arch specific image headers for RISC-V, ARM64, ARM RISC-V: Use common linux loader grub-core/Makefile.core.def | 8 ++-- grub-core/commands/file.c | 23 +++++++--- grub-core/loader/arm/linux.c | 3 +- grub-core/loader/arm64/xen_boot.c | 3 +- grub-core/loader/{arm64 => efi}/linux.c | 1 - grub-core/loader/riscv/linux.c | 59 ------------------------- include/grub/arm/linux.h | 20 --------- include/grub/arm64/linux.h | 48 -------------------- include/grub/efi/efi.h | 13 +++++- include/grub/riscv32/linux.h | 41 ----------------- include/grub/riscv64/linux.h | 43 ------------------ 11 files changed, 37 insertions(+), 225 deletions(-) rename grub-core/loader/{arm64 => efi}/linux.c (99%) delete mode 100644 grub-core/loader/riscv/linux.c delete mode 100644 include/grub/arm64/linux.h delete mode 100644 include/grub/riscv32/linux.h delete mode 100644 include/grub/riscv64/linux.h -- 2.25.1 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel