Nexus 6 shamu kernel build number mismatch everytime it is built out

140 views
Skip to first unread message

Alexis Robinson

unread,
Apr 14, 2017, 8:45:27 PM4/14/17
to Android Building
Hey there,

I'm having some trouble with build numbers and getting them to match up when building the Nexus 6 Shamu kernel.

For example:
I run the following command on the Nexus 6 device to identify the build number and GCC version.

Input:

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.


Next I prepare the environment variables for kernel build :


export ARCH=arm


export SUBARCH=arm


export CROSS_COMPILE=arm-eabi-


and run
make shamu_defconfig


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.








Reply all
Reply to author
Forward
0 new messages