Home | History | Annotate | Download | only in tools

Lines Matching refs:toolchain

24 PROGRAM_PARAMETERS="<src-dir> <ndk-dir> <toolchain>"
29 Where <src-dir> is the location of toolchain sources, <ndk-dir> is
30 the top-level NDK installation path and <toolchain> is the name of
31 the toolchain to use (e.g. llvm-3.4)."
34 BUILD_OUT=/tmp/ndk-$USER/build/toolchain
74 TOOLCHAIN="$3"
83 if [ ! -d "$SRC_DIR/$TOOLCHAIN/llvm" ] ; then
84 echo "ERROR: Source directory does not contain llvm sources: $SRC_DIR/$TOOLCHAIN/llvm"
88 if [ -e "$SRC_DIR/$TOOLCHAIN/llvm/tools/polly" -a ! -h "$SRC_DIR/$TOOLCHAIN/llvm/tools/polly" ] ; then
89 echo "ERROR: polly, if exist, needs to be a symbolic link: $SRC_DIR/$TOOLCHAIN/llvm/tools/polly"
118 # Check toolchain name
120 if [ -z "$TOOLCHAIN" ] ; then
121 echo "ERROR: Missing toolchain name parameter. See --help for details."
139 set_toolchain_ndk $NDK_DIR $TOOLCHAIN
180 if [ "$POLLY" = "yes" -a ! -d "$SRC_DIR/$TOOLCHAIN/polly" ] ; then
181 dump "Disable polly because $SRC_DIR/$TOOLCHAIN/polly doesn't exist"
186 rm -rf $SRC_DIR/$TOOLCHAIN/llvm/tools/polly
189 ln -s ../../polly $SRC_DIR/$TOOLCHAIN/llvm/tools
219 run $SRC_DIR/$TOOLCHAIN/llvm/tools/polly/utils/cloog_src/configure \
241 # configure the toolchain
242 dump "Configure: $TOOLCHAIN toolchain build"
248 LLVM_VERSION="`echo $TOOLCHAIN | tr '-' '\n' | tail -n 1`"
259 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.cpp
260 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.c
261 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.h
262 run cp -a $NDK_DIR/tests/abcc/jni/*.cpp $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
263 run cp -a $NDK_DIR/tests/abcc/jni/*.h $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
264 run cp -a $NDK_DIR/tests/abcc/jni/host/*.cpp $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
265 run cp -a $NDK_DIR/tests/abcc/jni/host/*.h $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
266 run cp -a $NDK_DIR/tests/abcc/jni/mman-win32/mman.[ch] $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
270 BINUTILS_VERSION=$(get_default_binutils_version_for_llvm $TOOLCHAIN)
272 run $SRC_DIR/$TOOLCHAIN/llvm/configure \
281 fail_panic "Couldn't configure llvm toolchain"
284 dump "Building : llvm toolchain [this can take a long time]."
287 fail_panic "Couldn't compile llvm toolchain"
291 dump "Running : llvm toolchain regression test"
296 dump "Running : polly toolchain regression test"
303 # install the toolchain to its final location
304 dump "Install : llvm toolchain binaries"
306 fail_panic "Couldn't install llvm toolchain to $TOOLCHAIN_BUILD_PREFIX"
326 if [ "$TOOLCHAIN" = "llvm-$DEFAULT_LLVM_VERSION" ] ; then
341 dump "Configure: mclinker against $TOOLCHAIN"
429 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.cpp
430 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.c
431 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.h
433 cp -p "$SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/ndk-bc2native.py" "$TOOLCHAIN_BUILD_PREFIX/bin/"
436 # copy to toolchain path
530 ARCHIVE="$TOOLCHAIN-$HOST_TAG.tar.bz2"
531 SUBDIR=$(get_toolchain_install_subdir $TOOLCHAIN $HOST_TAG)