Posts Tagged ‘kernel’

How to clone android kernel and check out kernel branches

十一月 30, 2009

//clone whole git repository from android common kernel repository

git clone git://android.git.kernel.org/kernel/common.git kernel

//show remote repository If you wanted to see remote branches:

git branch -r

//Check remote branch

git checkout -b android-2.6.29 origin/android-2.6.29

//A convenient way of check out remote branch

git checkout –track -t origin/android-2.6.29

// import build commands
source build/envsetup.sh

//