Skip to content

Commit

Permalink
Contribs: activate thumb2 on ARMv7-a cpu, not only NEON ones
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkempf committed Oct 5, 2012
1 parent 8db3bdf commit f2cc02b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion contrib/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ check_android_sdk()
[ -z "${ANDROID_ABI}" ] && echo "You must set ANDROID_ABI environment variable" && exit 1
add_make "ANDROID_ABI := ${ANDROID_ABI}"
test -z "${NO_NEON}" && add_make_enabled "HAVE_NEON"
[ ${ANDROID_ABI} = "armeabi-v7a" ] && add_make_enabled "HAVE_ARMV7A"
}

test -z "$PREFIX" || add_make "PREFIX := $PREFIX"
Expand All @@ -211,7 +212,7 @@ case "${OS}" in
add_make_enabled "HAVE_MACOSX" "HAVE_DARWIN_OS" "HAVE_BSD"
else
check_ios_sdk
add_make_enabled "HAVE_IOS" "HAVE_DARWIN_OS" "HAVE_BSD" "HAVE_NEON"
add_make_enabled "HAVE_IOS" "HAVE_DARWIN_OS" "HAVE_BSD" "HAVE_NEON" "HAVE_ARMV7A"
fi
;;
*bsd*)
Expand Down
4 changes: 2 additions & 2 deletions contrib/src/ffmpeg/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ endif
ifdef ENABLE_SMALL
FFMPEGCONF += --enable-small --optflags=-O2
ifeq ($(ARCH),arm)
ifdef HAVE_NEON
# XXX: assumes CPU >= cortex-a8, and thus thumb2 able
ifdef HAVE_ARMV7A
# XXX: assumes > ARMv7-A, and thus thumb2-able
FFMPEGCONF += --enable-thumb
endif
endif
Expand Down

0 comments on commit f2cc02b

Please sign in to comment.