aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build-armhf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build-armhf.sh')
-rwxr-xr-xscripts/build-armhf.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/build-armhf.sh b/scripts/build-armhf.sh
new file mode 100755
index 00000000..06304872
--- /dev/null
+++ b/scripts/build-armhf.sh
@@ -0,0 +1,20 @@
+#! /bin/sh
+
+sdir=`dirname $(readlink -f $0)`
+rootdir=`dirname $sdir`
+echo rootdir $rootdir
+
+export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf
+
+cd $rootdir
+rm -rf dist-armhf
+mkdir -p dist-armhf/bin
+# rm -rf build-armhf
+mkdir build-armhf
+cd build-armhf
+cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-armhf -DBUILDJAVA=ON -DBUILDEXAMPLES=ON ..
+make
+make install
+cp -a examples/* $rootdir/dist-armhf/bin
+
+cd $rootdir