Hi, AllIf you need often sync different versions of AOSP from google or internet,It's better for you to have a local AOSP mirror, it will help you to repo syncAOSP source much faster.1. Create a local AOSP mirrorHere is the link about how to create local AOSP mirror:$ mkdir -p /usr/local/aosp/mirror
$ cd /usr/local/aosp/mirror
$ repo init -u https://android.googlesource.com/mirror/manifest --mirror
$ repo sync2. Use a local AOSP mirrorAs described here:$ mkdir -p /usr/local/aosp/master$ cd /usr/local/aosp/master
$ repo init -u /usr/local/aosp/mirror/platform/manifest.git
$ repo sync3. linaro_android_build_cmds.sh supports to use mirror now.Linaro releases each android build with a linaro_android_build_cmds.sh script which helps yourepo sync and build the android source to reproduce the build.It supports using local mirror from now on, like:./linaro_android_build_cmds.sh -t -u <url-aosp-mirror-manifest>For other options of linaro_android_build_cmds.sh, please check the help or the release page of that build.-------------------------------------------------------------------------------------------------------------------If you do not use hackbox for Android building, you can ignore the following part now.-------------------------------------------------------------------------------------------------------------------4. Use AOSP mirror on hackbox.linaro.orgSince I often use hackbox to build android for different versions, I created a local AOSP mirror on hackbox,and it is synced every 6 hours.**** If you have AOSP mirror on hackbox too, let's talk to keep only one for disk space.****
The AOSP mirror path is here:/home/yongqin.liu/aosp-mirror/It's very similar to sync from AOSP or android-git.linaro.org, you can use it like this:mkdir aosp-mastercd aosp-masterrepo init -u /home/yongqin.liu/aosp-mirror/platform/manifest.git -p linuxOr use it with linaro_android_build_cmds.sh like this:repo sync./linaro_android_build_cmds.sh -u /home/yongqin.liu/aosp-mirror/platform/manifest.git -t -yIf you can specify --depth=1 or -g option for your repo init command, it will help you repo sync more faster.Like with,repo init -u /home/yongqin.liu/aosp-mirror/platform/manifest.git -p linux --depth=1It took less than 10 minutes to finish the following repo sync command;$time repo sync -j8.......real 7m22.535suser 8m41.735ssys 2m13.250s$--Best Regards,Yongqin Liu---------------------------------------------------------------#mailing listlinaro-android@lists.linaro.org
_______________________________________________
linaro-android mailing list
linaro-android@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-android