Make *uncompacted-fun-maps* synchronized.
[sbcl.git] / make-android.sh
blob8ef83c9696d4f792bfbbd747742ded00ed158684
1 #!/bin/sh
2 set -e
4 build_started=`date`
6 ./make-config.sh "$@" --with-android --without-gcc-tls --check-host-lisp || exit $?
8 . output/prefix.def
9 . output/build-config
11 $SBCL_XC_HOST < tools-for-build/canonicalize-whitespace.lisp || exit 1
13 ./make-host-1.sh
14 ./make-target-1.sh
15 ./make-host-2.sh
17 adb push ./ /data/local/tmp/sbcl/
19 adb shell "cd /data/local/tmp/sbcl ; LD_LIBRARY_PATH=/data/local/tmp/sbcl/android-libs sh make-target-2.sh"
21 # Hack needed to replace SB-GROVEL:RUN-C-COMPILER
22 compile_one() {
23 bin=temp-compile-from-android
24 adb pull /data/local/tmp/sbcl/contrib/asdf/$2 $bin.c
25 $CC $bin.c -o $bin
26 dest=$(echo $3 | sed 's/\r//g') # On older android line terminates with \r
27 adb push $bin /data/local/tmp/sbcl/contrib/asdf/$dest
28 echo "done"
29 rm $bin
30 rm $bin.c
33 adb shell "cd /data/local/tmp/sbcl ; LD_LIBRARY_PATH=/data/local/tmp/sbcl/android-libs sh make-target-contrib-android.sh" | \
34 while read line ;
35 do echo "$line" ;
36 echo $line | grep "RUN-C-COMPILER" | while read line ; do compile_one $line ; done ;
37 done
39 adb pull /data/local/tmp/sbcl/obj
40 adb pull /data/local/tmp/sbcl/output
42 ./make-shared-library.sh
44 NPASSED=`ls obj/sbcl-home/contrib/sb-*.fasl | wc -l`
45 echo
46 echo "The build seems to have finished successfully, including $NPASSED (out of $NCONTRIBS)"
47 echo "contributed modules. If you would like to run more extensive tests on"
48 echo "the new SBCL, you can try:"
49 echo
50 echo " cd ./tests && sh ./run-tests.sh"
51 echo
52 echo "To build documentation:"
53 echo
54 echo " cd ./doc/manual && make"
55 echo
56 echo "To install SBCL (more information in INSTALL):"
57 echo
58 echo " sh install.sh"
60 build_finished=`date`
61 echo
62 echo "//build started: $build_started"
63 echo "//build finished: $build_finished"