David Abdurachmanov
41d16420dd
Backport: - https://git.savannah.gnu.org/cgit/grub.git/commit/?id=a57977b5faf800ac68f7dfe6b84138208c7e6072 - https://git.savannah.gnu.org/cgit/grub.git/commit/?id=11268841e2e0130a862d15fce86d42cd6501bb49 Hopefully this fixes: BUILDSTDERR: __clzdi2 in zstd is not defined Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
35 lines
974 B
Diff
35 lines
974 B
Diff
From 466bd2fcf33b62c5ed27754ed3f85caa8925e99b Mon Sep 17 00:00:00 2001
|
|
From: Andreas Schwab <schwab@suse.de>
|
|
Date: Thu, 15 Aug 2019 16:55:13 +0200
|
|
Subject: [PATCH 2/2] grub-install: Define default platform for RISC-V
|
|
|
|
Signed-off-by: Andreas Schwab <schwab@suse.de>
|
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
|
Reviewed-by: Alexander Graf <agraf@csgraf.de>
|
|
---
|
|
util/grub-install.c | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/util/grub-install.c b/util/grub-install.c
|
|
index 37fcdac..8b6a037 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.24.0
|
|
|