summaryrefslogtreecommitdiff
path: root/extra/libvpx/mips64el.patch
blob: 075ee81193991f1314ac530bed4c4d59d6b0cef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff -ru libvpx-1.2.0.orig/build/make/configure.sh libvpx-1.2.0/build/make/configure.sh
--- libvpx-1.2.0.orig/build/make/configure.sh	2013-05-12 15:15:57.130701452 +0200
+++ libvpx-1.2.0/build/make/configure.sh	2013-05-12 15:17:30.904572335 +0200
@@ -952,6 +952,14 @@
 
         esac
     ;;
+    mips64*)
+        link_with_cc=gcc
+        setup_gnu_toolchain
+        tune_cflags="-mtune="
+        check_add_cflags -march=${tgt_isa}
+        check_add_asflags -march=${tgt_isa}
+        check_add_asflags -KPIC
+    ;;
     mips*)
         link_with_cc=gcc
         setup_gnu_toolchain
diff -ru libvpx-1.2.0.orig/configure libvpx-1.2.0/configure
--- libvpx-1.2.0.orig/configure	2013-05-12 15:15:57.259672776 +0200
+++ libvpx-1.2.0/configure	2013-05-12 15:17:56.198583024 +0200
@@ -98,6 +98,7 @@
 all_platforms="${all_platforms} armv7-linux-gcc"     #neon Cortex-A8
 all_platforms="${all_platforms} armv7-none-rvct"     #neon Cortex-A8
 all_platforms="${all_platforms} mips32-linux-gcc"
+all_platforms="${all_platforms} mips64el-linux-gcc"
 all_platforms="${all_platforms} ppc32-darwin8-gcc"
 all_platforms="${all_platforms} ppc32-darwin9-gcc"
 all_platforms="${all_platforms} ppc32-linux-gcc"
@@ -210,6 +211,7 @@
     neon
 
     mips32
+    mips64
     dspr2
 
     mmx