Android内核源代码

Android内核源代码,android,android-source,Android,Android Source,很久以前我下载了安卓2.2的源代码,但它没有内核源代码。我在网上看了看,似乎有一个单独的Android内核源我应该下载 有人给了我这个地址 git clone https://android.googlesource.com/kernel/common 但是我想我应该指定版本和分支。 那么,下载Android 2.2 froyo内核源代码的完整命令是什么?获取工具: $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison g

很久以前我下载了安卓2.2的源代码,但它没有内核源代码。我在网上看了看,似乎有一个单独的Android内核源我应该下载

有人给了我这个地址

git clone https://android.googlesource.com/kernel/common
但是我想我应该指定版本和分支。 那么,下载Android 2.2 froyo内核源代码的完整命令是什么?

获取工具:

$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
获取回购工具:

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
获取源代码:

$ repo init -u https://android.googlesource.com/platform/manifest  

同步单个项目:

$ repo sync {project_name}
获取通用内核:

$ git clone https://android.googlesource.com/kernel/common
获取工具:

$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
获取回购工具:

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
获取源代码:

$ repo init -u https://android.googlesource.com/platform/manifest  

同步单个项目:

$ repo sync {project_name}
获取通用内核:

$ git clone https://android.googlesource.com/kernel/common

要添加到@alongs答案->

使用Git获取源代码:

git checkout -b android-2.6.35 origin/android-2.6.35
其中
-b
=分支名称和起点为android-2.6.35

要列出远程分支,请使用以下命令:

git branch -r

要添加到@alongs答案->

使用Git获取源代码:

git checkout -b android-2.6.35 origin/android-2.6.35
其中
-b
=分支名称和起点为android-2.6.35

要列出远程分支,请使用以下命令:

git branch -r

对于其他内核,您可以使用以下任何一种:

git clone https://android.googlesource.com/kernel/common.git

git clone https://android.googlesource.com/kernel/goldfish.git

git clone https://android.googlesource.com/kernel/msm.git

git clone https://android.googlesource.com/kernel/omap.git

git clone https://android.googlesource.com/kernel/samsung.git

git clone https://android.googlesource.com/kernel/tegra.git

对于其他内核,您可以使用以下任何一种:

git clone https://android.googlesource.com/kernel/common.git

git clone https://android.googlesource.com/kernel/goldfish.git

git clone https://android.googlesource.com/kernel/msm.git

git clone https://android.googlesource.com/kernel/omap.git

git clone https://android.googlesource.com/kernel/samsung.git

git clone https://android.googlesource.com/kernel/tegra.git

git克隆https://android.googlesource.com/kernel/common.git
还不够

cd common
列出所有分支机构:

git branch -a
签出其中一个:

git checkout android-2.6.39

git克隆https://android.googlesource.com/kernel/common.git
还不够

cd common
列出所有分支机构:

git branch -a
签出其中一个:

git checkout android-2.6.39
可能的重复可能的重复