diff options
author | Sven Gothel <[email protected]> | 2013-04-24 04:58:10 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-04-24 04:58:10 +0200 |
commit | ef274002b64850b275fe9867026a89987b3169e0 (patch) | |
tree | 5573439c9c915d57fbc93ef9f463ddc478c4e188 | |
parent | 49e4b614e97a97bf7b501cf402a3e9871b997222 (diff) |
Adding scripts to check all JogAmp native ARM libraries ; check-glibc.sh checks all glibc version ..
-rw-r--r-- | make/scripts/check-elf.sh | 55 | ||||
-rw-r--r-- | make/scripts/check-glibc-version.sh | 8 | ||||
-rw-r--r-- | make/scripts/check-glibc.sh | 22 |
3 files changed, 77 insertions, 8 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 "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" diff --git a/make/scripts/check-glibc-version.sh b/make/scripts/check-glibc-version.sh deleted file mode 100644 index aa5f5cc..0000000 --- a/make/scripts/check-glibc-version.sh +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/sh - -if [ -z "$1" ] ; then - echo Usage $0 library-file - exit 1 -fi - -objdump -T $1 | grep GLIBC | awk ' { print $5 " " $6 } ' | sort diff --git a/make/scripts/check-glibc.sh b/make/scripts/check-glibc.sh new file mode 100644 index 0000000..9773449 --- /dev/null +++ b/make/scripts/check-glibc.sh @@ -0,0 +1,22 @@ +#! /bin/bash + +SDIR=`dirname $0` +XDIR=$SDIR/../../make/lib/toolchain +RDIR=$SDIR/../../.. + +function check_glibc() { + OBJDUMP=$1/bin/objdump + + echo "------------------------------------------------------------" + echo $2 via $OBJDUMP + echo + $OBJDUMP -T $2 | grep GLIBC | awk ' { print $5 " " $6 } ' | sort + echo "------------------------------------------------------------" +} + +check_glibc $XDIR/armsf-linux-gnueabi $SDIR/../ $RDIR/gluegen/build-linux-armv6/obj/libgluegen-rt.so +check_glibc $XDIR/armhf-linux-gnueabi $RDIR/gluegen/build-linux-armv6hf/obj/libgluegen-rt.so +check_glibc $XDIR/armsf-linux-gnueabi $RDIR/joal/build-linux-armv6/obj/libopenal.so +check_glibc $XDIR/armsf-linux-gnueabi $RDIR/joal/build-linux-armv6/obj/libjoal.so +check_glibc $XDIR/armhf-linux-gnueabi $RDIR/joal/build-linux-armv6hf/obj/libopenal.so +check_glibc $XDIR/armhf-linux-gnueabi $RDIR/joal/build-linux-armv6hf/obj/libjoal.so |