From 93e1b93a1073d62c0395c84516d37031100c703e Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Tue, 11 Feb 2014 14:24:15 -0500 Subject: [PATCH] working hacks for armv7hl --- libvpx.spec | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/libvpx.spec b/libvpx.spec index d9aa0cd..a3bf064 100644 --- a/libvpx.spec +++ b/libvpx.spec @@ -52,8 +52,7 @@ and decoder. %global vpxtarget x86_64-linux-gcc %else %ifarch armv7hl -# v7 uses cortex a8 opt -%global vpxtarget armv6-linux-gcc +%global vpxtarget armv7-linux-gcc %else %global vpxtarget generic-gnu %endif @@ -68,7 +67,12 @@ and decoder. %global generic_target 0 %endif -./configure --target=%{vpxtarget} --enable-pic --disable-install-srcs \ +%ifarch armv7hl +CROSS=armv7hl-redhat-linux-gnueabi- CHOST=armv7hl-redhat-linux-gnueabi-hardfloat ./configure \ +%else +./configure --target=%{vpxtarget} \ +%endif +--enable-pic --disable-install-srcs \ %if ! %{generic_target} --enable-shared \ %endif @@ -79,6 +83,21 @@ sed -i "s|-O3|%{optflags}|g" libs-%{vpxtarget}.mk sed -i "s|-O3|%{optflags}|g" examples-%{vpxtarget}.mk sed -i "s|-O3|%{optflags}|g" docs-%{vpxtarget}.mk +%ifarch armv7hl +#hackety hack hack +sed -i "s|AR=armv7hl-redhat-linux-gnueabi-ar|AR=ar|g" libs-%{vpxtarget}.mk +sed -i "s|AR=armv7hl-redhat-linux-gnueabi-ar|AR=ar|g" examples-%{vpxtarget}.mk +sed -i "s|AR=armv7hl-redhat-linux-gnueabi-ar|AR=ar|g" docs-%{vpxtarget}.mk + +sed -i "s|AS=armv7hl-redhat-linux-gnueabi-as|AS=as|g" libs-%{vpxtarget}.mk +sed -i "s|AS=armv7hl-redhat-linux-gnueabi-as|AS=as|g" examples-%{vpxtarget}.mk +sed -i "s|AS=armv7hl-redhat-linux-gnueabi-as|AS=as|g" docs-%{vpxtarget}.mk + +sed -i "s|NM=armv7hl-redhat-linux-gnueabi-nm|NM=nm|g" libs-%{vpxtarget}.mk +sed -i "s|NM=armv7hl-redhat-linux-gnueabi-nm|NM=nm|g" examples-%{vpxtarget}.mk +sed -i "s|NM=armv7hl-redhat-linux-gnueabi-nm|NM=nm|g" docs-%{vpxtarget}.mk +%endif + make %{?_smp_mflags} verbose=true target=libs %if %{generic_target}