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)

Kies Air Crashes
Started by lou50
Last post by pryan
37 minutes ago
Last post by kulas.alec
4 hours ago
Delete
Started by boyle.katheryn
Last post by arlie25
4 hours ago
Last post by ohoeger
47 minutes ago
Last post by elinor72
20 minutes ago
Last post by kale49
1 hour ago
Last post by stamm.harmony
41 minutes ago
Last post by ismael28
4 hours ago
Last post by gpredovic
1 hour ago