免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 972 | 回复: 0
打印 上一主题 下一主题

下载Android最新源码 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-22 08:51 |只看该作者 |倒序浏览
To download android src code, we need git and repo.
how to install git and repo?
pls refer to following:
1. install git:
dwn it from http://git-scm.com
#tar -jxvf git-version.tar.bz2
#cd git-version
#./configure --prefix=/usr
#make
#make install

2. install repo
 
curl http://android.git.kernel.org/repo > /usr/bin/repo
chmod a+x /usr/bin/repo

3. how to download the newest src code?
pls execute these cmds:
#repo init -u git://android.git.kernel.org/platform/manifest.git
you will get a repo log containing config-info.

hoho,  as you see, android-2.3.4_r1 is the newest tag made here.
yeah, you also can get this info via these lines:

all these log will be shown on your pc screen.
Now, delete the .repo when you get the newest version info.
and execute this cmd to start to download the newest src code:
#repo init -u git://android.git.kernel.org/platform/manifest.git -b android-2.3.4_r1
few minutes late, you will get a .repo dir. and a msg prompt is shown like this:

just accept it as following:


my log:
repo initialized in /opt/wrk/and/src

4. download src code
now, issue cmd
# repo sync
start to download src code....



您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP