related to local mirroring of android repo

724 views
Skip to first unread message

amit joshi

unread,
Jun 5, 2015, 3:46:33 PM6/5/15
to repo-d...@googlegroups.com
Hi 

I am setting up a local mirror for android repository from aosp. I have create a mirror in my /home/amit/aosp-mirror by following command. 
repo init -u https://android.googlesource.com/platform/manifest.git -b android-4.4.2_r1 --mirror

After that I have initialized the other directory /home/amit/aosp-master by following command(this is for KK branch)
/repo init -u /home/efi/aosp-mirror/platform/manifest.git -b android-4.4.2_r1

I have read here in several discussion about this and till now it is fine. I have to finally set up a local git server but I am trying to have hands on my client machine itself before going for local git server. Now my problem is if I have to add new project then how will i do that. Say I am adding new directory uboot then how will i add that to main.
Can you guys please help me in this regard. 

Thanks
Amit

Magnus Bäck

unread,
Jun 8, 2015, 3:35:20 PM6/8/15
to amit joshi, repo-d...@googlegroups.com
On Friday, June 05, 2015 at 21:36 CEST,
amit joshi <meet2...@gmail.com> wrote:

> I am setting up a local mirror for android repository from aosp. I
> have create a mirror in my /home/amit/aosp-mirror by following
> command.
> repo init -u https://android.googlesource.com/platform/manifest.git -b
> android-4.4.2_r1 --mirror

Okay, but for local mirrors you'll typically want to use the mirror
manifest (and not specify a -b option).

https://source.android.com/source/downloading.html#using-a-local-mirror

> After that I have initialized the other directory
> /home/amit/aosp-master by following command(this is for KK branch)
> /repo init -u /home/efi/aosp-mirror/platform/manifest.git -b
> android-4.4.2_r1
> I have read here in several discussion about this and till now it is
> fine. I have to finally set up a local git server but I am trying to
> have hands on my client machine itself before going for local git
> server. Now my problem is if I have to add new project then how will i
> do that. Say I am adding new directory uboot then how will i add that
> to main.

Add the git to the manifest file, .repo/manifests/default.xml, commit,
and push to a branch on your server. Since you don't want to modify the
branches that you sync from upstream you need to figure out a branching
strategy for your local mirror. The following StackOverflow answer might
not be that useful in itself but contains a number of links to other
questions on this topic. Figuring out how to do this is only partially
related to Repo/Gerrit.

http://stackoverflow.com/a/30702051

--
Magnus Bäck | Software Engineer, Development Tools
magnu...@sonymobile.com | Sony Mobile Communications

amit joshi

unread,
Jun 9, 2015, 3:10:26 AM6/9/15
to amit joshi, repo-d...@googlegroups.com
Thanks a lot Mangnus.
I have one more question though there is some mention about it in those posts. I don't want to bring all the branch while mirroring aosp. I am interested in only android-4.4.2_r1. I know I can mirror in this way but I am not sure I will be able to build it and if I will face any issue.

Thanks
Amit

Magnus Bäck

unread,
Jun 12, 2015, 1:56:02 AM6/12/15
to amit joshi, repo-d...@googlegroups.com
On Tuesday, June 09, 2015 at 09:10 CEST,
amit joshi <meet2...@gmail.com> wrote:

> I have one more question though there is some mention about it in those
> posts. I don't want to bring all the branch while mirroring aosp. I am
> interested in only android-4.4.2_r1. I know I can mirror in this way
> but I am not sure I will be able to build it and if I will face any
> issue.

If you're able to sync a full 4.4.2 workspace you're good to go.
The build process has no knowledge of what other branches you have
in each git.
Reply all
Reply to author
Forward
0 new messages