~ubuntu-branches/ubuntu/utopic/libav/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/patches/05-aarch64-support.patch

  • Committer: Package Import Robot
  • Author(s): William Grant
  • Date: 2013-10-11 16:59:06 UTC
  • Revision ID: package-import@ubuntu.com-20131011165906-g8z7sxf3812x0crd
Tags: 6:0.8.7-1ubuntu2
* debian/patches/{05-aarch64-support.patch,06-aarch64-pie.patch}:
  - Backport basic aarch64 support from git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From: Mans Rullgard <mans@mansr.com>
 
2
Subject: configure: add basic support for ARM AArch64
 
3
Origin: backport, http://git.libav.org/?p=libav.git;a=patch;h=5873b62
 
4
 
 
5
Index: libav-0.8.7/configure
 
6
===================================================================
 
7
--- libav-0.8.7.orig/configure  2013-05-12 17:08:17.000000000 +1000
 
8
+++ libav-0.8.7/configure       2013-10-11 16:45:52.861784100 +1100
 
9
@@ -1002,6 +1002,7 @@
 
10
 '
 
11
 
 
12
 ARCH_LIST='
 
13
+    aarch64
 
14
     alpha
 
15
     arm
 
16
     avr32
 
17
@@ -2184,6 +2185,9 @@
 
18
 
 
19
 # Deal with common $arch aliases
 
20
 case "$arch" in
 
21
+    aarch64|arm64)
 
22
+        arch="aarch64"
 
23
+    ;;
 
24
     arm*)
 
25
         arch="arm"
 
26
     ;;
 
27
@@ -2362,6 +2366,17 @@
 
28
         ;;
 
29
     esac
 
30
 
 
31
+elif enabled aarch64; then
 
32
+
 
33
+    case $cpu in
 
34
+        armv*)
 
35
+            cpuflags="-march=$cpu"
 
36
+        ;;
 
37
+        *)
 
38
+            cpuflags="-mcpu=$cpu"
 
39
+        ;;
 
40
+    esac
 
41
+
 
42
 fi
 
43
 
 
44
 add_cflags $cpuflags