android 源码 linux menuconfig,获取android源代码

To clone one of these trees, install , and run:git clone git://android.git.kernel.org/ + project path.

To clone the entire platform, install , and run:mkdir mydroid

cd mydroid

repo init -u git://android.git.kernel.org/platform/manifest.git

repo sync

For more information about , see an

打算全部下载回来再说,先下载repo脚本

更多git和repo使用说明看这里:

curl >repo

chmod +x repo

./repo init -u git://android.git.kernel.org/platform/manifest.git

gpg: keyring `/home/wen/.repoconfig/gnupg/secring.gpg' created

gpg: keyring `/home/wen/.repoconfig/gnupg/pubring.gpg' created

gpg: /home/wen/.repoconfig/gnupg/trustdb.gpg: trustdb created

gpg: key 920F5C65: public key "Repo Maintainer <>" imported

gpg: Total number processed: 1

gpg:               imported: 1

Getting repo ...

from git://android.git.kernel.org/tools/repo.git

./repo sync

和远程服务器同步,过程比较长,全部代码下来好几Gb

打算编译一个vmware虚拟机上能运行的

目前google已经出e pc支持的版本了

切换到cupcake 分支,master分支不是太稳定

$ repo init -u git://android.git.kernel.org/platform/manifest.git -b

cupcake

$ repo sync

同步后,很多的更改会uncommit

建立一个local_manifest.xml

$ vi ./.repo/local_manifest.xml

$ repo sync

... A new repo command (  1.8) is available.

... You should upgrade soon:

cp /home/invain/bin_x86/mydroid/.repo/repo/repo /home/invain/bin/

repo

Initializing project platform/vendor/asus/eee_701 ...

remote: Counting objects: 33, done.

remote: Compressing objects: 100% (31/31), done.

remote: Total 33 (delta 2), reused 33 (delta 2)

Unpacking objects: 100% (33/33), done.

From git://android.git.kernel.org/platform/vendor/asus/eee_701

* [new branch]      cupcake    -> korg/cupcake

* [new branch]      master     -> korg/master

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值