Thanks Vishal, this mail is really in time!
On 8 June 2015 at 14:23, Vishal Bhoj vishal.bhoj@linaro.org wrote:
Hi,
Most of you might already be knowing this. If you already have a version
of source say AOSP in a folder "mydroid" and you want to repo sync code
base from a vendor, you can do this:
repo init -u $MANIFEST_URL --reference=<path/mydroid>
repo sync
It will reuse the previous git objects and only download and store the
new git objects. This way a lot of space is saved.
Another way to get code downloaded faster is:
repo init -u $MANIFEST_URL --depth=1
repo sync -jX -c
This way it will only download the relevant branch with only last git
commit history of the project. Once this is done, you can do a repo init
with "--depth" option
here I think it should --depth=0
and then repo sync -c for the relevant project you are interested in to
have the complete history of that branch. The size of .repo folder was
reduced to 6 GB from the original 16GB size.
And we can use the group option, with "-darwin,-mips,-x86" will not
download the toolchain binary for x86/mips, it will save us some space too.
+1. -notdefault can be included as well.
--
Best Regards,
Yongqin Liu
#mailing list
linaro-android@lists.linaro.org linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-android