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.5)."
34 BUILD_OUT=/tmp/ndk-$USER/build/toolchain
78 TOOLCHAIN="$3"
87 if [ ! -d "$SRC_DIR/$TOOLCHAIN/llvm" ] ; then
88 echo "ERROR: Source directory does not contain llvm sources: $SRC_DIR/$TOOLCHAIN/llvm"
92 if [ -e "$SRC_DIR/$TOOLCHAIN/llvm/tools/polly" -a ! -h "$SRC_DIR/$TOOLCHAIN/llvm/tools/polly" ] ; then
93 echo "ERROR: polly, if exist, needs to be a symbolic link: $SRC_DIR/$TOOLCHAIN/llvm/tools/polly"
122 # Check toolchain name
124 if [ -z "$TOOLCHAIN" ] ; then
125 echo "ERROR: Missing toolchain name parameter. See --help for details."
143 set_toolchain_ndk $NDK_DIR $TOOLCHAIN
152 # cross toolchain "i586-*" we search for in find_mingw_toolchain()
184 LLVM_VERSION="`echo $TOOLCHAIN | tr '-' '\n' | tail -n 1`"
204 if [ "$POLLY" = "yes" -a ! -d "$SRC_DIR/$TOOLCHAIN/polly" ] ; then
205 dump "Disable polly because $SRC_DIR/$TOOLCHAIN/polly doesn't exist"
210 rm -rf $SRC_DIR/$TOOLCHAIN/llvm/tools/polly
213 ln -s ../../polly $SRC_DIR/$TOOLCHAIN/llvm/tools
243 run $SRC_DIR/$TOOLCHAIN/llvm/tools/polly/utils/cloog_src/configure \
265 # configure the toolchain
266 dump "Configure: $TOOLCHAIN toolchain build"
282 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.cpp
283 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.c
284 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.h
285 run cp -a $NDK_DIR/tests/abcc/jni/*.cpp $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
286 run cp -a $NDK_DIR/tests/abcc/jni/Abcc.h $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
287 run cp -a $NDK_DIR/tests/abcc/jni/host/*.cpp $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
288 run cp -a $NDK_DIR/tests/abcc/jni/host/*.h $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
289 run cp -a $NDK_DIR/tests/abcc/jni/llvm_${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR}.h $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/llvm_version.h
290 run cp -a $NDK_DIR/tests/abcc/jni/mman-win32/mman.[ch] $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native
294 BINUTILS_VERSION=$(get_default_binutils_version_for_llvm $TOOLCHAIN)
296 run $SRC_DIR/$TOOLCHAIN/llvm/configure \
305 fail_panic "Couldn't configure llvm toolchain"
308 dump "Building : llvm toolchain [this can take a long time]."
311 fail_panic "Couldn't compile llvm toolchain"
315 dump "Running : llvm toolchain regression test"
320 dump "Running : polly toolchain regression test"
327 # install the toolchain to its final location
328 dump "Install : llvm toolchain binaries"
330 fail_panic "Couldn't install llvm toolchain to $TOOLCHAIN_BUILD_PREFIX"
350 if [ "$MCLINKER" = "yes" -o "$TOOLCHAIN" = "llvm-$DEFAULT_LLVM_VERSION" ] ; then
374 dump "Configure: mclinker against $TOOLCHAIN"
463 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.cpp
464 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.c
465 rm -f $SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/*.h
467 cp -p "$SRC_DIR/$TOOLCHAIN/llvm/tools/ndk-bc2native/ndk-bc2native.py" "$TOOLCHAIN_BUILD_PREFIX/bin/"
470 # copy to toolchain path
564 ARCHIVE="$TOOLCHAIN-$HOST_TAG.tar.bz2"
565 SUBDIR=$(get_toolchain_install_subdir $TOOLCHAIN $HOST_TAG)