How to duplicate android src code & fsl patches to other PCs

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to duplicate android src code & fsl patches to other PCs

1,134 次查看
yifeiwang
Contributor III

I've downloaded all repo, git and fsl patches for JB 4.2.2_r1 in one PC, and built android without any problem. Now I'd like to duplicate all these source code to several other PCs, instead of downloading from internet(slow) again, is there any better way to do that? looks like I don't need to copy both .git directory and checkouted source code, is that right? how about fsl's patches?

标签 (2)
0 项奖励
4 回复数

758 次查看
LeonardoSandova
Specialist I

Set the system in the main machine, without building. Then you can NFS export the myandroid folder, then mount it on the rest of the machines and make copies of it. Git HEADs (last commit on a repo) will be in right correct places (which were set originally by the repo init command).

Leo

0 项奖励

758 次查看
yifeiwang
Contributor III

After NFS, do you mean that needs to copy all contents under myandroid directory? both .repo and the rest checkouted files?

0 项奖励

758 次查看
LeonardoSandova
Specialist I

Hi,

I believe I took the long way. If you need the A's myandroid, why don't you tar it and untar it on the rest of the machines? I think that would be the fastest. The NFS stuff was to avoid the tarball, but for this task it is much easier to share the tarball.

Leo

0 项奖励

758 次查看
yifeiwang
Contributor III

Thanks a lot for your reply, can you elaborate more? Let’s say my PC1 has already downloaded

all android src code & fsl patches under ~/myandroid, my another PC2 needs to duplicate src code.

I’m familiar with linux, but new to git, repo. If possible, pls give detail commands, thanks.

Regards,

YiFei

0 项奖励