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>
This commit is contained in:
parent
a57977b5fa
commit
11268841e2
1 changed files with 8 additions and 0 deletions
|
@ -324,6 +324,14 @@ get_default_platform (void)
|
||||||
return "arm64-efi";
|
return "arm64-efi";
|
||||||
#elif defined (__amd64__) || defined (__x86_64__) || defined (__i386__)
|
#elif defined (__amd64__) || defined (__x86_64__) || defined (__i386__)
|
||||||
return grub_install_get_default_x86_platform ();
|
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
|
#else
|
||||||
return NULL;
|
return NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue