[vlc-devel] [PATCH] Contrib: enable compilation flags for tegra2 Cra^H^HPUs

Jean-Baptiste Kempf jb at videolan.org
Wed Mar 28 18:29:08 CEST 2012


---
 contrib/bootstrap    |    1 +
 contrib/src/main.mak |    4 ++++
 2 files changed, 5 insertions(+)

diff --git a/contrib/bootstrap b/contrib/bootstrap
index 9266fd6..6c4f122 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -178,6 +178,7 @@ check_android_sdk()
 	[ -z "${ANDROID_NDK}" ] && echo "You must set ANDROID_NDK environment variable" && exit 1
 	add_make "ANDROID_NDK := ${ANDROID_NDK}"
 	test -z "${NO_NEON}" && add_make_enabled "HAVE_NEON"
+	test -n "${TEGRA2}" && add_make_enabled "HAVE_TEGRA2"
 }
 
 test -z "$PREFIX" || add_make "PREFIX := $PREFIX"
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index b911491..a424e28 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -109,9 +109,13 @@ EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/include
 ifdef HAVE_NEON
     EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a8
 else
+ifdef HAVE_TEGRA2
+    EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include -mfloat-abi=softfp -mfpu=vfpv3-d16 -mcpu=cortex-a9
+else
     EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -mfloat-abi=softfp -mcpu=arm1136jf-s -mfpu=vfp
 endif
 endif
+endif
 
 ifdef HAVE_MACOSX
 MIN_OSX_VERSION=10.5
-- 
1.7.9.5




More information about the vlc-devel mailing list