summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2021-09-19 16:43:41 +0200
committerDrew DeVault <sir@cmpwn.com>2021-09-19 17:28:27 +0200
commitf8e79444b338414595a7a612d871792ebfa70b9e (patch)
tree45696ecd69ce2d164682d1b5cf62151ce10f066a
parent3904318da2a7aa5487cbeb4e7aa4de48734e837f (diff)
downloadalpine-conf-f8e79444b338414595a7a612d871792ebfa70b9e.zip
riscv64: EFI riggings
Minor changes necessary to support EFI on RISC-V.
-rw-r--r--setup-disk.in1
-rw-r--r--update-kernel.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 34c359d..67e89f9 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -288,6 +288,7 @@ setup_grub() {
x86) target=i386-efi ; fwa=ia32 ;;
arm*) target=arm-efi ; fwa=arm ;;
aarch64) target=arm64-efi ; fwa=aa64 ;;
+ riscv64) target=riscv64-efi ; fwa=riscv64 ;;
esac
# currently disabling nvram so grub doesnt call efibootmgr
# installing to alpine directory so other distros dont overwrite it
diff --git a/update-kernel.in b/update-kernel.in
index b0ee125..dce5006 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -244,6 +244,7 @@ _apk add --initdb --update-cache
if [ "$BUILDDIR" ]; then
case "$ARCH" in
arm*|aarch64*) _install="zinstall dtbs_install" ;;
+ riscv64) _install="zinstall dtbs_install" ;;
*) _install="install" ;;
esac