[Upgrading, Modifying and Unlocking] kinghell:
Update 4#

Here's what's happening when I try to compile with 4.9.

I'm here:

a@ubuntu:~/Desktop/tools/walkman/vendor/nxp-opensource/kernel_imx$

Commands:

export CROSS_COMPILE=/home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-
export ARCH=arm64

the next, when I'm try to give this: make clean

I got this:

./scripts/gcc-version.sh: line 26: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: No such file or directory
./scripts/gcc-version.sh: line 27: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: No such file or directory
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN .
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN arch/arm64/kernel/vdso
CLEAN arch/arm64/kernel
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN crypto
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN drivers/firmware/efi/libstub
CLEAN drivers/tty/vt
CLEAN drivers/video/logo
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
./scripts/gcc-version.sh: line 26: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: No such file or directory
./scripts/gcc-version.sh: line 27: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: No such file or directory
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
./scripts/gcc-version.sh: line 26: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: No such file or directory
./scripts/gcc-version.sh: line 27: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: No such file or directory
CLEAN kernel
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN lib/raid6
CLEAN lib
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN net/wireless
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN security/selinux
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN usr
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN arch/arm64/boot/dts/freescale
CLEAN arch/arm64/boot/dts/qcom
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
make: /home/a/gcc/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
CLEAN .tmp_versions

..and of course the upcoming commands are failing aswell.

When I'm using the 4.8, after the make clean--> make mrproper-->make android_dmp1_defconfig, I have to give this:

scripts/config --disable CC_STACKPROTECTOR_STRONG

and then make -j4. It's becouse the compiler is old or something like that...don't know the exact reason.