Patchwork [meta-oe] libav: add support for AArch64

login
register
mail settings
Submitter Marcin Juszkiewicz
Date Jan. 11, 2013, 1:33 p.m.
Message ID <1357911187-5679-1-git-send-email-marcin.juszkiewicz@linaro.org>
Download mbox | patch
Permalink /patch/42491/
State Accepted, archived
Headers show

Comments

Marcin Juszkiewicz - Jan. 11, 2013, 1:33 p.m.
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
---
 .../0001-configure-enable-pic-for-AArch64.patch    | 27 ++++++++++++++++++++++
 meta-oe/recipes-multimedia/libav/libav_0.8.3.bb    |  5 ++++
 2 files changed, 32 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/libav/libav-0.8.3/0001-configure-enable-pic-for-AArch64.patch

Patch

diff --git a/meta-oe/recipes-multimedia/libav/libav-0.8.3/0001-configure-enable-pic-for-AArch64.patch b/meta-oe/recipes-multimedia/libav/libav-0.8.3/0001-configure-enable-pic-for-AArch64.patch
new file mode 100644
index 0000000..27d1d4a
--- /dev/null
+++ b/meta-oe/recipes-multimedia/libav/libav-0.8.3/0001-configure-enable-pic-for-AArch64.patch
@@ -0,0 +1,27 @@ 
+From 58db99e98f615d79ea90cac8f4bcf11c94e3e7c7 Mon Sep 17 00:00:00 2001
+From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
+Date: Thu, 10 Jan 2013 12:42:19 +0100
+Subject: [PATCH] configure: enable pic for AArch64
+
+Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
+
+Upstream-status: Backport
+---
+ configure |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- git.orig/configure
++++ git/configure
+@@ -2390,11 +2390,11 @@ EOF
+ 
+ check_host_cflags -std=c99
+ check_host_cflags -Wall
+ 
+ case "$arch" in
+-    alpha|ia64|mips|parisc|sparc)
++    alpha|ia64|mips|parisc|sparc|aarch64)
+         spic=$shared
+     ;;
+     x86)
+         subarch="x86_32"
+         check_cc <<EOF && subarch="x86_64"
diff --git a/meta-oe/recipes-multimedia/libav/libav_0.8.3.bb b/meta-oe/recipes-multimedia/libav/libav_0.8.3.bb
index 66a32c9..10bdfa7 100644
--- a/meta-oe/recipes-multimedia/libav/libav_0.8.3.bb
+++ b/meta-oe/recipes-multimedia/libav/libav_0.8.3.bb
@@ -1,5 +1,10 @@ 
 require libav.inc
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/libav-0.8.3:"
+
+SRC_URI_append = " \
+          file://0001-configure-enable-pic-for-AArch64.patch \
+"
 LIC_FILES_CHKSUM = "file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                     file://COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \
                     file://COPYING.LGPLv2.1;md5=e344c8fa836c3a41c4cbd79d7bd3a379 \