grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] grub-install: Define default platform for RISC-V


From: Alexander Graf
Subject: Re: [PATCH] grub-install: Define default platform for RISC-V
Date: Thu, 19 Sep 2019 12:21:50 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

I guess that one must have slipped through the cracks :)

Reviewed-by: Alexander Graf <address@hidden>


Alex

On 19.09.19 12:06, Daniel Kiper wrote:
Adding Alex...

In general "Reviewed-by: Daniel Kiper <address@hidden>"
but I would to hear Alex's opinion here too...

Daniel

On Thu, Aug 15, 2019 at 04:55:13PM +0200, Andreas Schwab wrote:
Signed-off-by: Andreas Schwab <address@hidden>
---
  util/grub-install.c | 8 ++++++++
  1 file changed, 8 insertions(+)

diff --git a/util/grub-install.c b/util/grub-install.c
index 8a55ad4b8..8970b73aa 100644
--- a/util/grub-install.c
+++ b/util/grub-install.c
@@ -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, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

_______________________________________________
Grub-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/grub-devel



reply via email to

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