Checking out Android source from github

空扰寡人 提交于 2019-12-06 00:12:26

问题


After going through all of these steps to check out the Android source code (Gingerbread branch), only to come to a compile error, I have decided to try to get the source code from a different source.

Here are the steps that I have taken to checkout the source code from the GitHub.com repository.

I checked out the repo tool from the GitHub.com repository

git clone git://github.com/android/tools_repo.git

Inside the repo script file that was downloaded, I changed the location of the repo tool as follows:

## repo default configuration
##
#REPO_URL='git://android.git.kernel.org/tools/repo.git'
REPO_URL='git://github.com/android/tools_repo.git'
REPO_REV='stable'

After this, I created the repository for the source code using the repo script 'git wrapper'.

repo init -u git://github.com/android/platform_manifest.git -b gingerbread

Which gave me a successful results; "repo initialized in /home/my/directory"

However, when I try to repo sync, I get the following error message:

$ repo sync

Initializing project platform/bionic ...
android.git.kernel.org[0: 149.20.4.77]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
error: Cannot fetch platform/bionic

Where are the references to the now-offline android.git.kernel.org? cat repo|grep kernel.org gives me nothing.


回答1:


Here you can find the howto on checking out from github.




回答2:


If you look at the default manifest in the platform_manifest repository, you'll see that kernel.org is still used quite frequently.

You'll have to wait for kernel.org to come back online, or consider hacking on CyanogenMod, which has a working manifest.

EDIT: It appears that all of the Korg repos are mirrored on GitHub. In that case, try patching with this pull request and then try a repo sync.



来源:https://stackoverflow.com/questions/7761518/checking-out-android-source-from-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!