[MPlayer-dev-eng] [PATCH] add initial RISC-V support
Brad Smith
brad at comstyle.com
Mon Jul 26 01:57:10 EEST 2021
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."
More information about the MPlayer-dev-eng
mailing list