[PATCH] common: Add support for ARC architecture

Alexey Brodkin Alexey.Brodkin at synopsys.com
Tue Aug 19 09:13:03 PDT 2014


GStreamer could be built for and run on Synopsys DesignWare ARC cores.
More information about these CPUs could be found at:
http://www.synopsys.com/IP/PROCESSORIP/ARCPROCESSORS

Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>

Cc: Tim-Philipp Muller <tim at centricular.net>
Cc: Edward Hervey <edward at collabora.com>
Cc: Sebastian Dröge <sebastian at centricular.com>
---
 m4/gst-arch.m4 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/m4/gst-arch.m4 b/m4/gst-arch.m4
index 077a20b..33a92b9 100644
--- a/m4/gst-arch.m4
+++ b/m4/gst-arch.m4
@@ -45,6 +45,9 @@ AC_DEFUN([AG_GST_ARCH],
     xalpha*)
       HAVE_CPU_ALPHA=yes
       AC_DEFINE(HAVE_CPU_ALPHA, 1, [Define if the target CPU is an Alpha]) ;;
+    xarc*)
+      HAVE_CPU_ARC=yes
+      AC_DEFINE(HAVE_CPU_ARC, 1, [Define if the target CPU is an ARC]) ;;
     xarm*)
       HAVE_CPU_ARM=yes
       AC_DEFINE(HAVE_CPU_ARM, 1, [Define if the target CPU is an ARM]) ;;
@@ -84,6 +87,7 @@ AC_DEFUN([AG_GST_ARCH],
   AM_CONDITIONAL(HAVE_CPU_PPC,        test "x$HAVE_CPU_PPC" = "xyes")
   AM_CONDITIONAL(HAVE_CPU_PPC64,      test "x$HAVE_CPU_PPC64" = "xyes")
   AM_CONDITIONAL(HAVE_CPU_ALPHA,      test "x$HAVE_CPU_ALPHA" = "xyes")
+  AM_CONDITIONAL(HAVE_CPU_ARC,        test "x$HAVE_CPU_ARC" = "xyes")
   AM_CONDITIONAL(HAVE_CPU_ARM,        test "x$HAVE_CPU_ARM" = "xyes")
   AM_CONDITIONAL(HAVE_CPU_SPARC,      test "x$HAVE_CPU_SPARC" = "xyes")
   AM_CONDITIONAL(HAVE_CPU_HPPA,       test "x$HAVE_CPU_HPPA" = "xyes")
@@ -104,7 +108,7 @@ AC_DEFUN([AG_GST_UNALIGNED_ACCESS], [
   AC_MSG_CHECKING([if unaligned memory access works correctly])
   if test x"$as_cv_unaligned_access" = x ; then
     case $host in
-      alpha*|arm*|hp*|mips*|sh*|sparc*|ia64*)
+      alpha*|arc*|arm*|hp*|mips*|sh*|sparc*|ia64*)
         _AS_ECHO_N([(blacklisted) ])
         as_cv_unaligned_access=no
 	;;
-- 
1.9.3



More information about the gstreamer-devel mailing list