Difference between revisions of "Android Kernel Download"

From eLinux.org
Jump to: navigation, search
Line 9: Line 9:
 
To download one of these and use it directly, you can use git.
 
To download one of these and use it directly, you can use git.
 
For example:
 
For example:
  git clone git://android.git.kernel.org/kernel/common.git
+
  git clone git://android.git.kernel.org/kernel/common.git kernel
 +
 
 +
To preserve your sanity, it's probably worth downloading this into a 'kernel' directory
 +
in your overall Android source directory scheme
  
 
To add one of these to your overall Android repository scheme, you add the appropriate kernel repository
 
To add one of these to your overall Android repository scheme, you add the appropriate kernel repository
Line 17: Line 20:
 
command, you do NOT automatically get a kernel tree included.  (That is, a kernel
 
command, you do NOT automatically get a kernel tree included.  (That is, a kernel
 
git tree is not referenced in the default Android manifest file, when you use
 
git tree is not referenced in the default Android manifest file, when you use
repo following the instructions at http://source.android.com/download )
+
repo following the instructions at http://source.android.com/download
  
 
For more about repo, see http://source.android.com/download/using-repo
 
For more about repo, see http://source.android.com/download/using-repo

Revision as of 13:40, 2 September 2009

The main Google repository with Android source code is at: http://android.git.kernel.org/

There are (as of September 2009) 4 main separate kernel repositories at that site:

  • common
  • experimental
  • msm
  • omap

To download one of these and use it directly, you can use git. For example:

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

To preserve your sanity, it's probably worth downloading this into a 'kernel' directory in your overall Android source directory scheme

To add one of these to your overall Android repository scheme, you add the appropriate kernel repository to your local_manifest.xml file. (???)

Note that when you download the rest of the Android source code, using the 'repo' command, you do NOT automatically get a kernel tree included. (That is, a kernel git tree is not referenced in the default Android manifest file, when you use repo following the instructions at http://source.android.com/download

For more about repo, see http://source.android.com/download/using-repo