shithub: libvpx

Download patch

ref: 661802b61d37419da82693bce11b9b0d038967de
parent: e0b3e213c6c8d0ac7c4b46e0fe5ab601eab498fa
author: Johann <johannkoenig@google.com>
date: Mon Dec 1 06:06:49 EST 2014

Remove default cortex-a8 tuning.

Probably not even the dominant platform the library is being built for.
Add --cpu= option description to help. The option already exists.

Don't allow passing just --cpu as a no-op.

BUG=826

Change-Id: Iaa3f4f693ec78b18927b159b480daafeba0549c0

--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -495,8 +495,6 @@
         toolchain="${toolchain:-${optval}}"
         enable_feature force_toolchain
         ;;
-      --cpu)
-        ;;
       --cpu=*)
         tune_cpu="$optval"
         ;;
@@ -842,10 +840,6 @@
             if enabled neon || enabled neon_asm; then
               check_add_cflags -mfpu=neon #-ftree-vectorize
               check_add_asflags -mfpu=neon
-            fi
-
-            if [ -z "${tune_cpu}" ]; then
-              tune_cpu=cortex-a8
             fi
           else
             check_add_cflags -march=${tgt_isa}
--- a/configure
+++ b/configure
@@ -26,6 +26,7 @@
   ${toggle_unit_tests}            unit tests
   ${toggle_decode_perf_tests}     build decoder perf tests with unit tests
   ${toggle_encode_perf_tests}     build encoder perf tests with unit tests
+  --cpu=CPU                       tune for the specified CPU (ARM: cortex-a8, X86: sse3)
   --libc=PATH                     path to alternate libc
   --size-limit=WxH                max size to allow in the decoder
   --as={yasm|nasm|auto}           use specified assembler [auto, yasm preferred]