[Android Q&A, Help & Troubleshooting] TheStrix:
Hey friends, I want to use a custom toolchain for my ROM & kernel.

I have my SaberMod 4.8 toolchain in "/*ROM source*/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-SM-4.8"

I edited kernel.mk present in "/*ROM source*/build/core/tasks" to this. (line #148)(orig)

But, when I was compiling kernel by "make bootimage", in between, I get this CROSS_COMPILE which have older toolchain path (seen 2-3 times by me when kernel compiling process was on):

See 2 lines starting from "make -C"

CC lib/memory_alloc.o
CC lib/plist.o
CC lib/prio_heap.o
CC lib/prio_tree.o
CC lib/proportions.o
CC lib/radix-tree.o
CC lib/ratelimit.o
CC lib/rbtree.o
CC lib/reciprocal_div.o
CC lib/rwsem-spinlock.o
CC lib/sha1.o
CC lib/show_mem.o
CC lib/string.o
CC lib/timerqueue.o
CC lib/vsprintf.o
AR lib/lib.a
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gzip
AS arch/arm/boot/compressed/piggy.gzip.o
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/decompress.o
CC arch/arm/boot/compressed/string.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/ashldi3.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/root/cr/kernel/xiaomi/armani'
make -C kernel/xiaomi/armani O=/root/cr/out/target/product/armani/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /root/cr/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" dtbs
make[1]: Entering directory `/root/cr/kernel/xiaomi/armani'
DTC arch/arm/boot/msm8226-sim.dtb
DTC arch/arm/boot/msm8226-fluid.dtb
DTC arch/arm/boot/msm8226-v1-cdp.dtb
DTC arch/arm/boot/msm8226-v1-mtp.dtb
DTC arch/arm/boot/msm8226-v1-qrd-evt.dtb
DTC arch/arm/boot/msm8226-v1-qrd-dvt.dtb
DTC arch/arm/boot/msm8226-v2-720p-cdp.dtb
DTC arch/arm/boot/msm8226-v2-1080p-cdp.dtb
DTC arch/arm/boot/msm8226-v2-720p-mtp.dtb
DTC arch/arm/boot/msm8226-v2-1080p-mtp.dtb
DTC arch/arm/boot/msm8226-v2-qrd-evt.dtb
DTC arch/arm/boot/msm8226-v2-qrd-dvt.dtb
DTC arch/arm/boot/msm8926-720p-cdp.dtb
DTC arch/arm/boot/msm8926-1080p-cdp.dtb
DTC arch/arm/boot/msm8926-720p-mtp.dtb
DTC arch/arm/boot/msm8926-1080p-mtp.dtb
DTC arch/arm/boot/msm8926-qrd.dtb
DTC arch/arm/boot/msm8926-qrd-skug.dtb
DTC arch/arm/boot/msm8926-qrd-skug-pvt.dtb
DTC arch/arm/boot/msm8226-v1-qrd-skuf.dtb
DTC arch/arm/boot/msm8226-v2-qrd-skuf.dtb
DTC arch/arm/boot/apq8026-v1-xpm.dtb
DTC arch/arm/boot/apq8026-v1-cdp.dtb
DTC arch/arm/boot/apq8026-v1-mtp.dtb
DTC arch/arm/boot/apq8026-v2-xpm.dtb
DTC arch/arm/boot/apq8026-v2-720p-cdp.dtb
DTC arch/arm/boot/apq8026-v2-1080p-cdp.dtb
DTC arch/arm/boot/apq8026-v2-720p-mtp.dtb
DTC arch/arm/boot/apq8026-v2-1080p-mtp.dtb
make[1]: Leaving directory `/root/cr/kernel/xiaomi/armani'
make -C kernel/xiaomi/armani O=/root/cr/out/target/product/armani/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /root/cr/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" modules
make[1]: Entering directory `/root/cr/kernel/xiaomi/armani'
Using /root/cr/kernel/xiaomi/armani as source for kernel
GEN /root/cr/out/target/product/armani/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /root/cr/kernel/xiaomi/armani/scripts/checksyscalls.sh
CC [M] arch/arm/mach-msm/reset_modem.o
CC [M] arch/arm/mach-msm/dma_test.o
CC [M] arch/arm/mach-msm/msm-buspm-dev.o
CC [M] crypto/ansi_cprng.o
CC [M] block/test-iosched.o
CC [M] drivers/coresight/coresight-event.o
CC [M] drivers/crypto/msm/qcedev.o
CC [M] drivers/crypto/msm/qcrypto.o
CC [M] drivers/gud/mobicore_driver/logging.o
CC [M] drivers/gud/mobicore_driver/ops.o
CC [M] drivers/gud/mobicore_driver/mem.o
CC [M] drivers/gud/mobicore_driver/api.o
CC [M] drivers/gud/mobicore_driver/main.o
CC [M] drivers/gud/mobicore_driver/pm.o
CC [M] drivers/gud/mobicore_kernelapi/main.o
CC [M] drivers/gud/mobicore_kernelapi/clientlib.o
CC [M] drivers/gud/mobicore_kernelapi/device.o
CC [M] drivers/gud/mobicore_kernelapi/session.o
CC [M] drivers/gud/mobicore_kernelapi/connection.o
LD [M] drivers/gud/mckernelapi.o
LD [M] drivers/gud/mcdrvmodule.o
CC [M] drivers/input/evbug.o
CC [M] drivers/input/misc/gpio_event.o
CC [M] drivers/input/misc/gpio_matrix.o
CC [M] drivers/input/misc/gpio_input.o
CC [M] drivers/input/misc/gpio_output.o
CC [M] drivers/input/misc/gpio_axis.o
CC [M] drivers/media/radio/radio-iris-transport.o
CC [M] drivers/media/video/gspca/gspca.o
LD [M] drivers/media/video/gspca/gspca_main.o
CC [M] drivers/mmc/card/mmc_test.o
CC [M] drivers/mmc/card/mmc_block_test.o
CC [M] drivers/scsi/scsi_wait_scan.o
CC [M] drivers/spi/spidev.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapApiData.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapApiDebug.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapApiExt.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapApiHCBB.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapApiInfo.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapApiLinkCntl.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapApiLinkSupervision.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapApiStatus.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapApiTimer.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapModule.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapRsn8021xAuthFsm.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapRsn8021xPrf.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapRsn8021xSuppRsnFsm.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapRsnAsfPacket.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapRsnSsmAesKeyWrap.o
CC [M] drivers/staging/prima/CORE/BAP/src/bapRsnSsmEapol.o

So is the toolchain path I set woking? Cz I tried to set toolchain path in build/envsetup.sh, but ended with error "Is your PATH set correctly?"

Any help would be appreciable. :)