source: gs3-extensions/android-ndk/trunk/src/ANDROID-CASCADE-MAKE.sh@ 26878

Last change on this file since 26878 was 26878, checked in by davidb, 10 years ago

To cross-compile sed

File size: 778 bytes
Line 
1#!/bin/bash
2
3export crossOS=android
4export crossHost=arm-linux-androideabi
5
6export CROSSCONFIGURE_VARS="CPP=$crossHost-cpp CC=$crossHost-gcc CXX=$crossHost-g++ LD=$crossHost-ld AR=$crossHost-ar RANLIB=$crossHost-ranlib"
7
8export CROSSCONFIGURE_ARGS="--host=$crossHost"
9
10if [ "x$1" = "xtarclean" ] ; then
11 /bin/rm .CONFIG-UPDATE-DONE
12elif [ ! -f .CONFIG-UPDATE-DONE ] ; then
13 ./ANDROID-FIX-CONFIG.sh
14
15 echo "Updated config.guess and config.sub files" > .CONFIG-UPDATE-DONE
16
17fi
18
19source devel.bash
20
21for d in packages ; do
22 echo "Running $d/CASCADE-MAKE.sh"
23
24 (cd $d ; ./CASCADE-MAKE.sh $*)
25
26 if [ $? != 0 ] ; then
27 echo "Error encountered running $d/CASCADE-MAKE.sh"
28 exit 1
29 fi
30done
31
32if [ $makedist = "1" ] ; then
33 default_toplevel_make_dist $GSDLOS devel.bash
34fi
Note: See TracBrowser for help on using the repository browser.