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.
43 By default, the script rebuilds the toolchain(s) for you host system [$HOST_TAG],
59 $PROGNAME --toolchain-src-dir=/path/to/toolchain/src \
65 cross-toolchain installed and in your path. Note that the script named
66 'build-mingw64-toolchain.sh' can be used to rebuild such a toolchain
87 however that generating a canadian-cross toolchain (e.g. building on Linux a
88 Windows toolchain that targets Android ARM binaries) will force the generation
89 of a host toolchain as well, in case it is not listed in your --systems list.
92 The toolchain binaries are installed under \$NDK_DIR/toolchains by default,
96 the BFD linker is still the default used by the generated toolchain. You can
99 --default-ld=<name> Changes the default toolchain linker.
108 experimentation (e.g. with your own patched toolchain
125 register_var_option "--toolchain-src-dir=<path>" TOOLCHAIN_SRC_DIR "Select toolchain source directory"
177 panic "Please use --toolchain-src-dir=<path> to select toolchain source directory."
214 # system for the toolchain binaries, valid values:
239 # A cross-toolchain will typically use the GNU configuration triplet as
241 # package on Ubuntu provides a Windows cross-toolchain that uses the
254 # redirect to the correct toolchain, eventually adding hidden extra compiler
313 printf "[${COLOR_PURPLE}${TOOLCHAIN}${COLOR_END}]"
332 # - we build a $BUILD_OS-x86 toolchain on a $BUILD_OS-x86_64 machine
336 # This assumes that the build machine's toolchain can generate both
355 # Ok, we want to build a 32-bit toolchain on a 64-bit machine
470 WRAPPERS_DIR="$BUILD_DIR/toolchain-wrappers"
530 # $1: toolchain install dir
531 # $2: toolchain prefix, no trailing dash (e.g. arm-linux-androideabi)
632 # This function probes the system to find the best toolchain or cross-toolchain
634 # a wrapper toolchain under $WRAPPERS_DIR with a prefix of ${HOST}-
654 # Try to find the best toolchain to do that job, assuming we are in
659 # If possible, automatically use our custom toolchain to generate
663 try_host_fullprefix "$(dirname $ANDROID_NDK_ROOT)/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3" i686-linux
671 # If possible, automaticaly use our custom toolchain to generate
727 dump "Using darwin cross-toolchain: ${HOST_FULLPREFIX}gcc"
737 # build-mingw64-toolchain.sh.
745 # only cross-toolchain named i686-pc-mingw32.
753 dump " x86_64-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
754 dump " i686-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
760 # Adjust $HOST to match the toolchain to ensure proper builds.
779 # before 5.0. We already have 5.0.5 in AOSP toolchain source tree, so
782 dump "You cannot build a 64-bit Windows toolchain with this version of libgmp."
795 # There is no x86_64-pc-mingw32 toolchain on Fedora.
799 dump " x86_64-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
800 dump " i686-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
849 # We're going to generate a wrapper toolchain with the $HOST prefix
851 # wrapper toolchain named 'i686-linux-gnu-gcc' that will redirect
858 run $NDK_BUILDTOOLS_PATH/gen-toolchain-wrapper.sh "$WRAPPERS_DIR" \
916 # Returns the install location of the $HOST binutils cross-toolchain
922 # Returns the install location of the $HOST binutils cross-toolchain
928 # Returns the install location of the $HOST gcc cross-toolchain
931 echo "$(host_build_dir)/temp-$TOOLCHAIN"
934 # Returns the install location of the $BUILD gcc cross-toolchain
937 TOOLCHAIN"
946 # standalone versions of the toolchain.
948 # If you change this, you will need to modify make-standalone-toolchain.sh
954 # Returns the final install location of the $HOST toolchain
961 echo "$(host_build_dir)/final-$TOOLCHAIN"
971 # NOTE: The 'mipsel' toolchain architecture name maps to the 'mips'
978 *) panic "Unknown target toolchain architecture: $TARGET_ARCH"
990 TOOLCHAIN_SUB_DIR=toolchains/$TOOLCHAIN/prebuilt/$HOST_TAG
1191 # $1: toolchain source directory
1259 dump "$(host_text)$(target_text): Cannot build Gold for this toolchain!"
1265 # --default-ld still determines the default linker to use by the toolchain.
1309 # the NDK, but allows us to use the same toolchain for the platform
1374 stamps_do sysroot-gcc-$SYSTEM-$TOOLCHAIN copy_target_sysroot
1466 TOOLCHAIN build_host_gcc_core
1497 stamps_do gcc-all-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_target_gcc_libs
1500 stamps_do gcc-core-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_host_gcc_core
1505 # $2: toolchain name (e.g. x86-4.4.3)
1509 local TOOLCHAIN=$2
1512 # host toolchain first (even if we don't need target GCC libraries)
1514 build_gcc $BUILD_TAG $TOOLCHAIN
1520 setup_build_for_toolchain $TOOLCHAIN
1523 stamps_do build-gcc-$SYSTEM-$TOOLCHAIN build_host_gcc
1537 # $2: toolchain name (e.g. x86-4.4.3)
1541 local TOOLCHAIN=$2
1544 build_gcc $SYSTEM $TOOLCHAIN
1600 local TOOLCHAIN_LICENSES="$ANDROID_NDK_ROOT"/build/tools/toolchain-licenses
1605 # $2: toolchain name (e.g. x86-4.4.3)
1610 local TOOLCHAIN=$2
1612 local PACKAGE_NAME="$TOOLCHAIN-$SYSTEM.tar.bz2"
1615 setup_build_for_toolchain $TOOLCHAIN
1626 for TOOLCHAIN in $TOOLCHAINS; do
1627 build_gcc $SYSTEM $TOOLCHAIN
1634 for TOOLCHAIN in $TOOLCHAINS; do
1635 install_gcc $SYSTEM $TOOLCHAIN
1642 for TOOLCHAIN in $TOOLCHAINS; do
1643 package_gcc $SYSTEM $TOOLCHAIN "$PACKAGE_DIR"