Ok . Thank you.
I reduced the size of terminal ( fonts ) and I was able to do make menuconfig. But using the same (.config ) and compiling with internal gcc ( as suggested by Beiriannydd ) and enabling only kernel module support , I can't compile the kernel. Some errors at the end.
You will have to paste the errors or we can't help you. There could be any number of issues.
I decided to compile in my macbook. It is fast. But the error is the same.
First I have to create a dir named tools in /kernel-3.18/tools
An error saying that dir tools does not exist. So the dir after the creation is /kernel-3.18/tools/tools.
Then the compilation starts and finished without notice of errors.
But scrolling the compilation I saw this error :
CC sound/usb/proc.o
In file included from drivers/misc/mediatek/base/power/mt6797/mt_eem.c:1036:0:
drivers/misc/mediatek/base/power/mt6797/../../../include/mt-plat/mt6797/include/mach/mt_thermal.h:27:24: fatal error: mt_gpufreq.h: No such file or directory
#include "mt_gpufreq.h"
^
compilation terminated.
scripts/Makefile.build:257: recipe for target 'drivers/misc/mediatek/base/power/mt6797/mt_eem.o' failed
make[6]: *** [drivers/misc/mediatek/base/power/mt6797/mt_eem.o] Error 1
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek/base/power/mt6797' failed
make[5]: *** [drivers/misc/mediatek/base/power/mt6797] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek/base/power' failed
make[4]: *** [drivers/misc/mediatek/base/power] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek/base' failed
make[3]: *** [drivers/misc/mediatek/base] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek' failed
make[2]: *** [drivers/misc/mediatek] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc' failed
make[1]: *** [drivers/misc] Error 2
Makefile:939: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC sound/usb/quirks.o
CC net/ipv6/af_inet6.o
Interesting is the .config file is the same I use when compiling following this instructions below; The difference is that I am compiling inside the tree kernel-3.18 and not to a KERNEL_OUT dir.
https://www.oesf.org/forum/index.php?act=Po...amp;qpid=286798$ make O=../KERNEL_OUT -C kernel-3.18 ARCH=arm64 aeon6797_6m_n_halium_defconfig
$ make O=../KERNEL_OUT -C kernel-3.18 ARCH=arm64 CROSS_COMPILE=../aarch64-linux-android-4.9/bin/aarch64-linux-android- -j8
Thank you again