aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/openbios-aarch64-riscv64-support.patch
blob: 25cf2499b80aba855f9d15bad7efb86c480c72c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This was submitted upstream
https://github.com/openbios/openbios/pull/12

diff --git a/config/scripts/switch-arch b/config/scripts/switch-arch
index b5acc6c..a96ef4b 100755
--- a/config/scripts/switch-arch
+++ b/config/scripts/switch-arch
@@ -38,7 +38,8 @@ longbits()
     if test "$cpu" = "sparc64" -o "$cpu" = "ia64" \
         -o "$cpu" = "amd64" -o "$cpu" = "x86_64" \
         -o "$cpu" = "powerpc64" -o "$cpu" = "ppc64" \
-        -o "$cpu" = "ppc64le" -o "$cpu" = "alpha" ; then
+        -o "$cpu" = "ppc64le" -o "$cpu" = "alpha" \
+        -o "$cpu" = "aarch64" -o "$cpu" = "riscv64" ; then
         echo 64
     else
         echo 32