如何下载Android 4.0配套的Linux 3.x内核源代码


Android 4.0的源代码已经可以下载了,在Android官网source.android.com上有下载Android 4.0源代码的详细描述。但是,Android官网source.android.com没有介绍如何下载Android4.0配套的Linux 3.x内核源代码。在此为大家介绍如何下载Android 4.0配套的Linux 3.x内核源代码。

下载Android 4.0配套的Linux 3.x内核源代码步骤:

1、使用git clone https://android.googlesource.com/kernel/common.git 命令clone linux3.x内核的repository的master分支(branch)

2、使用git checkout -b android-3.0 origin/android-3.0命令checkout android-3.0分支(branch),就得到了Linux 3.x内核源代码了

相关内容