Hello community,

here is the log from the commit of package libvpx for openSUSE:Factory
checked in at Sun Oct 16 12:53:40 CEST 2011.



--------
--- openSUSE:Factory/libvpx/libvpx.changes      2011-09-23 02:11:09.000000000 
+0200
+++ /mounts/work_src_done/STABLE/libvpx/libvpx.changes  2011-10-15 
04:16:53.000000000 +0200
@@ -1,0 +2,9 @@
+Sat Oct 15 01:47:32 UTC 2011 - [email protected]
+
+- support build libvpx on armv7hl architecture
+  * add libvpx-configure-add-armv7-tgt-isa.patch
+  * add armv7-linux-gcc target and enable runtime cpu detect when
+    configure. It both support ARMv7 cpu with or without NEON.
+    e.g. NVIDIA Tegra 2
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  libvpx-configure-add-armv7-tgt-isa.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libvpx.spec ++++++
--- /var/tmp/diff_new_pack.o9baz0/_old  2011-10-16 12:53:32.000000000 +0200
+++ /var/tmp/diff_new_pack.o9baz0/_new  2011-10-16 12:53:32.000000000 +0200
@@ -28,6 +28,7 @@
 Source0:        
http://webm.googlecode.com/files/%{name}-v%{version}%{patchlevel}.tar.bz2
 # PATCH-FIX-UPSTREAM libvpx-define-config_pic.patch [email protected] -- 
For older compilers, CONFIG_PIC need to be defined.
 Patch0:         libvpx-define-config_pic.patch
+Patch1:         libvpx-configure-add-armv7-tgt-isa.patch
 BuildRequires:  yasm
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
@@ -56,7 +57,6 @@
 
 %package -n %{name}0
 
-
 License:        BSD3c
 Summary:        VP8 codec library
 Group:          System/Libraries
@@ -88,16 +88,26 @@
 %prep
 %setup -q -n %name-v%version%patchlevel
 %patch0 -p1
+%patch1 -p1
 
 %build
 cd build
 export CFLAGS="%{optflags}"
 # It is only an emulation of autotools configure; the macro does not work
+
+# libvpx default enable NEON support on ARMv7, unfortunately some ARMv7
+# CPU doesn't have NEON, e.g. NVIDIA Tegra 2.
+# So, we still set -mfpu=neon when build libvpx rpm, but also enable
+# runtime-cpu-detect for runtime detect NEON.
 ../configure \
     --prefix=%{_prefix} \
     --libdir=%{_libdir} \
     --enable-debug \
     --enable-shared \
+%ifarch armv7l armv7hl
+    --target=armv7-linux-gcc \
+    --enable-runtime-cpu-detect \
+%endif
     --enable-pic 
 make %{?_smp_mflags}
 

++++++ libvpx-configure-add-armv7-tgt-isa.patch ++++++
Index: libvpx-v0.9.7-p1/build/make/configure.sh
===================================================================
--- libvpx-v0.9.7-p1.orig/build/make/configure.sh
+++ libvpx-v0.9.7-p1/build/make/configure.sh
@@ -656,6 +656,8 @@ process_common_toolchain() {
                 CROSS=${CROSS:-arm-iwmmxt-linux-gnueabi-}
             elif enabled symbian; then
                 CROSS=${CROSS:-arm-none-symbianelf-}
+            elif [[ "$(uname -m)" == $tgt_isa* ]]; then
+               CROSS=${CROSS:-}
             else
                 CROSS=${CROSS:-arm-none-linux-gnueabi-}
             fi
@@ -670,8 +672,13 @@ process_common_toolchain() {
                 check_add_asflags -mcpu=${tgt_isa}
             elif enabled armv7
             then
-                check_add_cflags -march=armv7-a -mcpu=cortex-a8 -mfpu=neon 
-mfloat-abi=softfp  #-ftree-vectorize
-                check_add_asflags -mcpu=cortex-a8 -mfpu=neon 
-mfloat-abi=softfp  #-march=armv7-a
+               if [[ "$(uname -m)" == $tgt_isa* ]]; then
+                       check_add_cflags -mfpu=neon
+                       check_add_asflags -mfpu=neon
+               else
+                       check_add_cflags -march=armv7-a -mcpu=cortex-a8 
-mfpu=neon -mfloat-abi=softfp  #-ftree-vectorize
+                       check_add_asflags -mcpu=cortex-a8 -mfpu=neon 
-mfloat-abi=softfp  #-march=armv7-a
+               fi
             else
                 check_add_cflags -march=${tgt_isa}
                 check_add_asflags -march=${tgt_isa}
continue with "q"...



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to