summaryrefslogtreecommitdiff
path: root/extra/libvpx/mips64el.patch
blob: a0e84d5c262beeecfcfccc4d91fc637329469793 (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
38
diff -uNar libvpx-v0.9.6.orig//build/make/configure.sh libvpx-v0.9.6/build/make/configure.sh
--- libvpx-v0.9.6.orig//build/make/configure.sh	2011-03-04 17:40:37.000000000 -0300
+++ libvpx-v0.9.6/build/make/configure.sh	2011-03-27 12:31:49.263260789 -0300
@@ -805,6 +805,15 @@
 
         esac
     ;;
+    mips64*)
+        CROSS=""
+        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*)
         CROSS=${CROSS:-mipsel-linux-uclibc-}
         link_with_cc=gcc
diff -uNar libvpx-v0.9.6.orig//configure libvpx-v0.9.6/configure
--- libvpx-v0.9.6.orig//configure	2011-03-04 17:40:37.000000000 -0300
+++ libvpx-v0.9.6/configure	2011-03-27 12:31:05.571213054 -0300
@@ -94,6 +94,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"
@@ -194,6 +195,7 @@
     iwmmxt2
 
     mips32
+    mips64
 
     mmx
     sse