Build ROM and Kernel using custom Toolchain

Cant seem to export linaro 5.x from DespairFactor, the build looks for 4.9 instead of 5.x
What im doing wrong?

This is my "envsetup.sh" setup:

Code:

# The gcc toolchain does not exists for windows/cygwin. In this case, do not reference it. export ANDROID_TOOLCHAIN= export ANDROID_TOOLCHAIN_2ND_ARCH= local ARCH=$(get_build_var TARGET_ARCH) case $ARCH in x86) toolchaindir=x86/x86_64-linux-android-$targetgccversion/bin ;; x86_64) toolchaindir=x86/x86_64-linux-android-$targetgccversion/bin ;; arm) toolchaindir=arm/arm-linux-androideabi-5.x/bin ;; arm64) toolchaindir=aarch64/aarch64-linux-android-$targetgccversion/bin; toolchaindir2=arm/arm-linux-androideabi-$targetgccversion2/bin ;; mips|mips64) toolchaindir=mips/mips64el-linux-android-$targetgccversion/bin ;; *) echo "Can't find toolchain for unknown architecture: $ARCH" toolchaindir=xxxxxxxxx ;; esac if [ -d "$gccprebuiltdir/$toolchaindir" ]; then export ANDROID_TOOLCHAIN=$gccprebuiltdir/$toolchaindir fi

if [ -d "$gccprebuiltdir/$toolchaindir2" ]; then export ANDROID_TOOLCHAIN_2ND_ARCH=$gccprebuiltdir/$toolchaindir2 fi

unset ANDROID_KERNEL_TOOLCHAIN_PATH case $ARCH in arm) # Legacy toolchain configuration used for ARM kernel compilation toolchaindir=arm/arm-eabi-5.x-linaro/bin if [ -d "$gccprebuiltdir/$toolchaindir" ]; then export ARM_EABI_TOOLCHAIN="$gccprebuiltdir/$toolchaindir" ANDROID_KERNEL_TOOLCHAIN_PATH="$ARM_EABI_TOOLCHAIN": fi ;; *)


This ir the error:


Code:
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-gcc: Ficheiro ou directoria inexistente bionic/libc/crt.mk:92: recipe for target '/home/fsadino/android/temasek/out/target/product/bacon/obj/lib/crtbegin_static1.o' failed make: *** [/home/fsadino/android/temasek/out/target/product/bacon/obj/lib/crtbegin_static1.o] Error 127 make: ** Esperando que outros processos terminem. /bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-gcc: Ficheiro ou directoria inexistente bionic/libc/crt.mk:39: recipe for target '/home/fsadino/android/temasek/out/target/product/bacon/obj/lib/crtbrand.o' failed make: *** [/home/fsadino/android/temasek/out/target/product/bacon/obj/lib/crtbrand.o] Error 127

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by connie95
4 hours ago
Last post by torp.modesta
1 hour ago
Last post by ypfannerstill
37 minutes ago
Last post by marilie.zulauf
4 hours ago
Last post by juvenal50
2 hours ago
Last post by eharris
18 minutes ago
Last post by lbogisich
26 minutes ago
Last post by morar.eunice
3 hours ago
Last post by moriah76
3 hours ago
Last post by okeebler
1 hour ago
Last post by wintheiser.henriette
2 hours ago
Last post by fgleichner
2 hours ago
Last post by wmills
4 hours ago