adb shell cat /proc/version
Output:
Linux version 3.10.40-g57ab30e (androi...@wpiw15.hot.corp.google.com) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Thu Dec 8 04:23:22 UTC 2016
I then check out the build 57ab30e as per the guidelines : http://source.android.com/source/building-kernels.html
e.g.
git clone https://android.googlesource.com/kernel/msm
cd msm
git checkout 57ab30e
Using Git I get the Standalone Toolchain as identified.
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
and make sure the toolchain is added to the PATH.
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
gedit .config to add the following lines:
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
Next I run
make - j5
The resulting kernel build number when I check it does not match that of the build number I chose to build out.
Has anyone any ideas why this is happening ?
It is to do with the issue of Unified Headers in the NDKs - toolchains as per:
https://android.googlesource.com/platform/ndk/+/master/docs/UnifiedHeaders.md
Thank you.