First get the defconfig:
ls -l ./arch/arm/configs[/code]-t0_04_defconfig
So,
cp arch/arm/configs/t0_04_defconfig ./.config[/code]Once that's done, execute:
make oldconfig
Now a new .config file is written to kernel root
Now you can execute a make, only to find that it errors out soon. The reason is of course a "-Werror" parameter in the main Makefile, which you can see if you do a:
grep -i -n '-Werror' Makefile[/code]So, edit the file in emacs, and remove the -Werror
It didnt still build and gave an error of the compiler not supporting arm
So downloaded the latest NDK android-ndk-r8c
wget http://dl.google.com/android/ndk/android-ndk-r8c-linux-x86.tar.bz2
Added the toolchain to $PATH, chose the toolchain, and hey presto! The kernel compiled without any errors! :D :D
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.