Lines Matching refs:toolchain
38 register_var_option "--toolchain-src-pkg=<file>" OPTION_TOOLCHAIN_SRC_PKG "Use toolchain source package."
41 register_var_option "--toolchain-src-dir=<path>" OPTION_TOOLCHAIN_SRC_DIR "Use toolchain source directory."
48 register_var_option "--try-x86" OPTION_TRY_X86 "Build experimental x86 toolchain too."
68 By default, the script will download the toolchain sources from the Internet,
69 but you can override this using either --toolchain-src-dir or
70 --toolchain-src-pkg.
89 NDK_DIR=/tmp/ndk-toolchain/ndk-prebuilt-$$
113 dump "ERROR: You can't use both --toolchain-src-dir and --toolchain-src-pkg"
118 dump "ERROR: Invalid toolchain source directory: $SRC_DIR"
136 # Unpack the toolchain sources
138 dump "ERROR: Invalid toolchain source package: $OPTION_TOOLCHAIN_SRC_PKG"
142 fail_panic "Could not unpack toolchain sources!"
144 # Download the toolchain sources
150 $PROGDIR/download-toolchain-sources.sh $DOWNLOAD_FLAGS $SRC_DIR
151 fail_panic "Could not download toolchain sources!"
159 # 1/ Copy the NDK toolchain build scripts
160 # 2/ Copy the toolchain sources/package
180 dump "Copy toolchain sources to remote"
181 ssh $DARWIN_SSH mkdir -p $TMPREMOTE/toolchain &&
182 (cd "$SRC_DIR" && tar czf - .) | (ssh $DARWIN_SSH tar xzf - -C $TMPREMOTE/toolchain)
183 fail_panic "Could not copy toolchain!"
185 run ssh $DARWIN_SSH "$TMPREMOTE/ndk/build/tools/rebuild-all-prebuilt.sh --toolchain-src-dir=$TMPREMOTE/toolchain --package-dir=$TMPREMOTE/packages"
211 # Build the toolchain from sources
212 # $1: toolchain name (e.g. arm-linux-androideabi-4.4.3)
216 dump "Building $1 toolchain... (this can be long)"
217 run $PROGDIR/build-gcc.sh $FLAGS $2 --build-out=$BUILD_DIR/toolchain-$1 $SRC_DIR $NDK_DIR $1
218 fail_panic "Could bot build $1 toolchain!"
219 package_it "$1 toolchain" "$1-$HOST_TAG" "toolchains/$1/prebuilt/$HOST_TAG"
269 TOOLCHAIN_FLAGS="--toolchain-pkg=\"$PACKAGE_DIR/arm-linux-androideabi-4.4.3-$HOST_TAG.tar.bz2\""
274 TOOLCHAIN_FLAGS="--toolchain-pkg=\"$PACKAGE_DIR/x86-4.2.1-$HOST_TAG.tar.bz2\""