[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mplayer-dev-eng
Subject:    [MPlayer-dev-eng] [PATCH] add initial RISC-V support
From:       Brad Smith <brad () comstyle ! com>
Date:       2021-07-25 22:57:10
Message-ID: YP3sRkdCQW7lOxqd () humpty ! home ! comstyle ! com
[Download RAW message or body]

OpenBSD only supports riscv64 but this is an attempt at adding
some of the initial bits for RISC-V support.


Index: configure
===================================================================
--- configure	(revision 38313)
+++ configure	(working copy)
@@ -289,6 +289,13 @@
   esac
 }
 
+riscv() {
+  case "$host_arch" in
+    riscv*) return 0;;
+    *) return 1;;
+  esac
+}
+
 # Use this before starting a check
 echocheck() {
   echo "============ Checking for $@ ============" >> "$TMPLOG"
@@ -1991,7 +1998,10 @@
 if arm ; then
   cc_check && host_arch=aarch64 || host_arch=arm
 fi
+if riscv ; then
+  cc_check && host_arch=riscv64 || host_arch=riscv32
 fi
+fi
 
 echo "Detected operating system: $system_name"
 echo "Detected host architecture: $host_arch"
@@ -2836,6 +2846,15 @@
     iproc='arc'
     ;;
 
+  riscv*)
+    arch='riscv'
+    iproc='riscv'
+
+    if test "$host_arch" = "riscv64" ; then
+      def_fast_64bit='#define HAVE_FAST_64BIT 1'
+    fi
+    ;;
+
   *)
     echo "The architecture of your CPU ($host_arch) is not supported by this configure script"
     echo "It seems nobody has ported MPlayer to your OS or CPU type yet."
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic