Lines Matching refs:toolchain
17 # Rebuild the host GCC toolchain binaries from sources.
25 PROGRAM_PARAMETERS="[<toolchain-name>+]"
28 To use it, you will first need to call download-toolchain-sources.sh to download
29 the toolchain sources, then pass the corresponding directory with the
30 --toolchain-src-dir=<path> option.
46 By default, the script rebuilds the toolchain(s) for you host system [$HOST_TAG],
62 $PROGNAME --toolchain-src-dir=/path/to/toolchain/src \
68 cross-toolchain installed and in your path. Note that the script named
69 'build-mingw64-toolchain.sh' can be used to rebuild such a toolchain
90 however that generating a canadian-cross toolchain (e.g. building on Linux a
91 Windows toolchain that targets Android ARM binaries) will force the generation
92 of a host toolchain as well, in case it is not listed in your --systems list.
95 The toolchain binaries are installed under \$NDK_DIR/toolchains by default,
99 the BFD linker is still the default used by the generated toolchain. You can
102 --default-ld=<name> Changes the default toolchain linker.
111 experimentation (e.g. with your own patched toolchain
128 register_var_option "--toolchain-src-dir=<path>" TOOLCHAIN_SRC_DIR "Select toolchain source directory"
180 panic "Please use --toolchain-src-dir=<path> to select toolchain source directory."
217 # system for the toolchain binaries, valid values:
242 # A cross-toolchain will typically use the GNU configuration triplet as
244 # package on Ubuntu provides a Windows cross-toolchain that uses the
257 # redirect to the correct toolchain, eventually adding hidden extra compiler
316 printf "[${COLOR_PURPLE}${TOOLCHAIN}${COLOR_END}]"
335 # - we build a $BUILD_OS-x86 toolchain on a $BUILD_OS-x86_64 machine
339 # This assumes that the build machine's toolchain can generate both
358 # Ok, we want to build a 32-bit toolchain on a 64-bit machine
409 WRAPPERS_DIR="$BUILD_DIR/toolchain-wrappers"
469 # $1: toolchain install dir
470 # $2: toolchain prefix, no trailing dash (e.g. arm-linux-androideabi)
571 # This function probes the system to find the best toolchain or cross-toolchain
573 # a wrapper toolchain under $WRAPPERS_DIR with a prefix of ${HOST}-
593 # Try to find the best toolchain to do that job, assuming we are in
598 # If possible, automatically use our custom toolchain to generate
602 try_host_fullprefix "$(dirname $ANDROID_NDK_ROOT)/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3" i686-linux
610 # If possible, automaticaly use our custom toolchain to generate
666 dump "Using darwin cross-toolchain: ${HOST_FULLPREFIX}gcc"
676 # build-mingw64-toolchain.sh.
684 # only cross-toolchain named i686-pc-mingw32.
692 dump " x86_64-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
693 dump " i686-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
699 # Adjust $HOST to match the toolchain to ensure proper builds.
718 # before 5.0. We already have 5.0.5 in AOSP toolchain source tree, so
721 dump "You cannot build a 64-bit Windows toolchain with this version of libgmp."
734 # There is no x86_64-pc-mingw32 toolchain on Fedora.
738 dump " x86_64-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
739 dump " i686-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
788 # We're going to generate a wrapper toolchain with the $HOST prefix
790 # wrapper toolchain named 'i686-linux-gnu-gcc' that will redirect
797 run $NDK_BUILDTOOLS_PATH/gen-toolchain-wrapper.sh "$WRAPPERS_DIR" \
855 # Returns the install location of the $HOST binutils cross-toolchain
861 # Returns the install location of the $HOST binutils cross-toolchain
867 # Returns the install location of the $HOST gcc cross-toolchain
870 echo "$(host_build_dir)/temp-$TOOLCHAIN"
873 # Returns the install location of the $BUILD gcc cross-toolchain
876 echo "$TOP_BUILD_DIR/$BUILD/temp-$TOOLCHAIN"
885 # standalone versions of the toolchain.
887 # If you change this, you will need to modify make-standalone-toolchain.sh
893 # Returns the final install location of the $HOST toolchain
900 echo "$(host_build_dir)/final-$TOOLCHAIN"
910 # NOTE: The 'mipsel' toolchain architecture name maps to the 'mips'
917 *) panic "Unknown target toolchain architecture: $TARGET_ARCH"
929 TOOLCHAIN_SUB_DIR=toolchains/$TOOLCHAIN/prebuilt/$HOST_TAG
1130 # $1: toolchain source directory
1198 dump "$(host_text)$(target_text): Cannot build Gold for this toolchain!"
1204 # --default-ld still determines the default linker to use by the toolchain.
1248 # the NDK, but allows us to use the same toolchain for the platform
1313 stamps_do sysroot-gcc-$SYSTEM-$TOOLCHAIN copy_target_sysroot
1410 stamps_do gcc-core-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_host_gcc_core
1441 stamps_do gcc-all-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_target_gcc_libs
1444 stamps_do gcc-core-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_host_gcc_core
1449 # $2: toolchain name (e.g. x86-4.4.3)
1453 local TOOLCHAIN=$2
1456 # host toolchain first (even if we don't need target GCC libraries)
1458 build_gcc $BUILD_TAG $TOOLCHAIN
1464 setup_build_for_toolchain $TOOLCHAIN
1467 stamps_do build-gcc-$SYSTEM-$TOOLCHAIN build_host_gcc
1481 # $2: toolchain name (e.g. x86-4.4.3)
1485 local TOOLCHAIN=$2
1488 build_gcc $SYSTEM $TOOLCHAIN
1547 local TOOLCHAIN_LICENSES="$ANDROID_NDK_ROOT"/build/tools/toolchain-licenses
1552 # $2: toolchain name (e.g. x86-4.4.3)
1557 local TOOLCHAIN=$2
1559 local PACKAGE_NAME="$TOOLCHAIN-$SYSTEM.tar.bz2"
1562 setup_build_for_toolchain $TOOLCHAIN
1573 for TOOLCHAIN in $TOOLCHAINS; do
1574 build_gcc $SYSTEM $TOOLCHAIN
1581 for TOOLCHAIN in $TOOLCHAINS; do
1582 install_gcc $SYSTEM $TOOLCHAIN
1589 for TOOLCHAIN in $TOOLCHAINS; do
1590 package_gcc $SYSTEM $TOOLCHAIN "$PACKAGE_DIR"