Using repo -g

4,415 views
Skip to first unread message

G. Blake Meike

unread,
Oct 27, 2014, 12:39:21 PM10/27/14
to android-...@googlegroups.com
Is there somewhere I can find out how to use the -g parameter for repo with AOSP?  I would like to get the sources for the build tools (gradle plugin, aapt, etc), which repo does not normally pull, because they are in the group "tools".  On the other hand, if I init the repo with -g tools, I get *only* the tools.

While examining the manifest, I discovered that there is also a group called "darwin", and I'm all curious about what it is for, now.

So, I guess, two questions:

1) It appears that if I don't specify groups, I get un-grouped projects.  If I do specify groups, it appears that I do not get the un-grouped projects.  Is there a way to explicitly name the ungrouped projects?

2) Is there documentation that describes the contents of each of the groups: pdk, cts, grouper, flo, device, darwin, etc.?

-blake

Nirav Desai

unread,
Oct 30, 2014, 9:50:41 AM10/30/14
to android-...@googlegroups.com
You can use -g all,-notdefault,tools to get all the repo synced.

--Nirav

G. Blake Meike

unread,
Oct 30, 2014, 10:36:32 AM10/30/14
to android-...@googlegroups.com
Cool!  Thanks!

- How do you know that?
- What's in all those additional repos?

-blake

Nirav Desai

unread,
Oct 30, 2014, 11:50:43 AM10/30/14
to android-...@googlegroups.com
You can read documentation by typing "repo help manifest"

For Groups:
Attribute `groups`: List of groups to which this project belongs,
whitespace or comma separated. All projects belong to the group "all",
and each project automatically belongs to a group of its name:`name` and
path:`path`. E.g. for <project name="monkeys" path="barrel-of"/>, that
project definition is implicitly in the following manifest groups:
default, name:monkeys, and path:barrel-of. If you place a project in the
group "notdefault", it will not be automatically downloaded by repo. If
the project has a parent element, the `name` and `path` here are the
prefixed ones.


So when you do repo init with any AOSP branch, it will bring in all the needed repos to build images for particular target. But when you want to build SDK that's when you need those extra tools for which you need extra argument with -g in your repo init command.

If you do only  -g tools then it will only sync repos  for group "tools". That is why you need to specify -g all,-notdefault,tools to get everything needed to build images for target as well as SDK and any other add-ons.

Hope this helps.

--Nirav

G. Blake Meike

unread,
Oct 31, 2014, 12:58:31 PM10/31/14
to android-...@googlegroups.com
Very helpful Nirav.   Thank you!

Still two questions:

1) What is the -notdefault?  Does the "-" remove the members of a group (that is, is "-g all,-notdefault" the same as "-g default".

2) The only non-default repos are tagged with "tools", "eclipse", and "motodev".  I know what's in tools.  Any idea what eclipse an motodev are?

-blake
Reply all
Reply to author
Forward
0 new messages