summaryrefslogtreecommitdiffstats
path: root/make/scripts/check-elf.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-04-24 04:58:10 +0200
committerSven Gothel <[email protected]>2013-04-24 04:58:10 +0200
commitef274002b64850b275fe9867026a89987b3169e0 (patch)
tree5573439c9c915d57fbc93ef9f463ddc478c4e188 /make/scripts/check-elf.sh
parent49e4b614e97a97bf7b501cf402a3e9871b997222 (diff)
Adding scripts to check all JogAmp native ARM libraries ; check-glibc.sh checks all glibc version ..
Diffstat (limited to 'make/scripts/check-elf.sh')
-rw-r--r--make/scripts/check-elf.sh55
1 files changed, 55 insertions, 0 deletions
diff --git a/make/scripts/check-elf.sh b/make/scripts/check-elf.sh
new file mode 100644
index 0000000..3f208e7
--- /dev/null
+++ b/make/scripts/check-elf.sh
@@ -0,0 +1,55 @@
+#! /bin/bash
+
+SDIR=`dirname $0`
+RDIR=$SDIR/../../..
+
+function check_arm_elf_sub() {
+
+ echo $1
+ echo
+ readelf -A $1
+}
+function check_arm_elf() {
+
+ echo "============================================================"
+ check_arm_elf_sub $1
+ echo "============================================================"
+}
+function check_jogl_arm_elf() {
+ echo "============================================================"
+ echo JOGL $1
+ echo "------------------------------------------------------------"
+ check_arm_elf_sub $1/libjogl_desktop.so
+ echo "------------------------------------------------------------"
+ check_arm_elf_sub $1/libjogl_mobile.so
+ echo "------------------------------------------------------------"
+ check_arm_elf_sub $1/libnativewindow_awt.so
+ echo "------------------------------------------------------------"
+ check_arm_elf_sub $1/libnativewindow_x11.so
+ echo "------------------------------------------------------------"
+ check_arm_elf_sub $1/libnewt.so
+ echo "============================================================"
+}
+
+echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
+echo "Test Android ARMv6 -> ARMv6"
+check_arm_elf $RDIR/gluegen/build-android-armv6/obj/libgluegen-rt.so
+check_arm_elf $RDIR/joal/build-android-armv6/obj/libopenal.so
+check_jogl_arm_elf $RDIR/jogl/build-android-armv6/lib
+echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
+
+echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
+echo "Test Linux ARMv6 -> ARMv5te"
+check_arm_elf $RDIR/gluegen/build-linux-armv6/obj/libgluegen-rt.so
+check_arm_elf $RDIR/joal/build-linux-armv6/obj/libopenal.so
+check_arm_elf $RDIR/joal/build-linux-armv6/obj/libjoal.so
+check_jogl_arm_elf $RDIR/jogl/build-linux-armv6/lib
+echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
+
+echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
+echo "Test Android ARMv6 Hard-Float -> ARMv6 Hard-Float"
+check_arm_elf $RDIR/gluegen/build-linux-armv6hf/obj/libgluegen-rt.so
+check_arm_elf $RDIR/joal/build-linux-armv6hf/obj/libopenal.so
+check_arm_elf $RDIR/joal/build-linux-armv6hf/obj/libjoal.so
+check_jogl_arm_elf $RDIR/jogl/build-linux-armv6hf/lib
+echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"