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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,511 Views
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?

Labels (2)
0 Kudos
Reply
4 Replies

1,135 Views
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 Kudos
Reply

1,135 Views
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 Kudos
Reply

1,135 Views
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 Kudos
Reply

1,135 Views
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 Kudos
Reply