grub-install: Define default platform for RISC-V
PATCH 1/1 grub-install: Define default platform for RISC-V
--- util/grub-install.c | 8 ++++++++ 1 file changed, 8 insertions(+)
util/grub-install.c +8 -0
@@ -324,6 +324,14 @@ get_default_platform (void)return "arm64-efi" ;#elif defined (__amd64__) || defined (__x86_64__) || defined (__i386__)return grub_install_get_default_x86_platform (); +#elif defined (__riscv) +#if __riscv_xlen ==32 +return "riscv32-efi" ; +#elif __riscv_xlen ==64 +return "riscv64-efi" ; +#else +return NULL ; +#endif #else return NULL ;#endif
Signature · 6 lines
2.22.1 -- Andreas Schwab, SUSE Labs, [email protected] GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
Adding Alex...
In general "Reviewed-by: Daniel Kiper <[email protected]>" but I would to hear Alex's opinion here too...
Daniel
Quoted 36 lines · Andreas Schwab
Signed-off-by Andreas Schwab <[email protected]>--- util/grub-install.c | 8 ++++++++ 1 file changed, 8 insertions(+)util/grub-install.c +8
-1@@ -324,6 +324,14 @@ get_default_platform (void)return "arm64-efi" ;#elif defined (__amd64__) || defined (__x86_64__) || defined (__i386__)return grub_install_get_default_x86_platform (); +#elif defined (__riscv) +#if __riscv_xlen ==32 +return "riscv32-efi" ; +#elif __riscv_xlen ==64 +return "riscv64-efi" ; +#else +return NULL ; +#endif #else return NULL ;#endif --2.22.1
--
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Alexander Graf
Reviewed-byI guess that one must have slipped through the cracks :)
Alex
Quoted 44 lines · Daniel Kiper
Adding Alex...
In general "Reviewed-by: Daniel Kiper <[email protected]>" but I would to hear Alex's opinion here too...
Daniel
Quoted 36 lines · Andreas Schwab
Signed-off-by Andreas Schwab <[email protected]>--- util/grub-install.c | 8 ++++++++ 1 file changed, 8 insertions(+)util/grub-install.c +8
-1@@ -324,6 +324,14 @@ get_default_platform (void)return "arm64-efi" ;#elif defined (__amd64__) || defined (__x86_64__) || defined (__i386__)return grub_install_get_default_x86_platform (); +#elif defined (__riscv) +#if __riscv_xlen ==32 +return "riscv32-efi" ; +#elif __riscv_xlen ==64 +return "riscv64-efi" ; +#else +return NULL ; +#endif #else return NULL ;#endif --2.22.1
--
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel