summaryrefslogtreecommitdiffstats
path: root/test/native/cross-android-armv7-tst1/hello-fp.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-07-23 01:50:21 +0200
committerSven Gothel <[email protected]>2011-07-23 01:50:21 +0200
commit967782f7bdbd0dd73c2e3ea448a0c9d44552a7d9 (patch)
treee05edc4bed58c9ff8503728b0a6db07b67032144 /test/native/cross-android-armv7-tst1/hello-fp.sh
parent2d57b3cbb4a8189ecb5523f6d8de3aa37db78a13 (diff)
Adding native crosscompile test to ubuntu/armv7 and android/armv7
Diffstat (limited to 'test/native/cross-android-armv7-tst1/hello-fp.sh')
-rw-r--r--test/native/cross-android-armv7-tst1/hello-fp.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/native/cross-android-armv7-tst1/hello-fp.sh b/test/native/cross-android-armv7-tst1/hello-fp.sh
new file mode 100644
index 0000000..c4a627e
--- /dev/null
+++ b/test/native/cross-android-armv7-tst1/hello-fp.sh
@@ -0,0 +1,15 @@
+
+TEST_APP=hello-fp
+
+SPEC=androideabi.armv7-a
+
+. /opt-linux-x86/etc/profile.android
+. ./android.ndk.env-4.4.3-${SPEC}.sh
+
+mkdir -p build/native
+
+$NDK_GCC $NDK_INCLUDE $NDK_CFLAGS $NDK_LDFLAGS -o build/native/${TEST_APP}-${SPEC} ${TEST_APP}.c
+$NDK_READELF -a build/native/${TEST_APP}-${SPEC} > build/native/${TEST_APP}-${SPEC}.txt
+adb push build/native/${TEST_APP}-${SPEC} /projects/native-tst
+adb shell /projects/native-tst/${TEST_APP}-${SPEC}
+