<manifest>
<remote name="github" // 远程服务器名称是“github”,后面用github表示fetch fetch=".." // 获取数据的位置是"..",上一级目录 review="review.cyanogenmod.org" />
// gerrit审核的位置
<remote name="private" // 远程服务器名称“private” fetch="ssh://git@github.com" />
// 从”ssh://git@github.com下载代码
<remote name="aosp" // aosp fetch="https://android.googlesource.com" // 代码下载地址 review="android-review.googlesource.com" revision="refs/tags/android-7.1.1_r6" />
// 默认的git分支 // 默认的下载地址,如果没有指定remote的话。
<default revision="refs/heads/cm-14.1" // 默认的代码下载地址 remote="github" // github,表示上面的remote设置的name="github"的一项,那么下载的地址fetch就是”..“ sync-c="true" // 只同步指定的分支 sync-j="4" />
// repo sync 默认的并行数目
<!-- AOSP Projects -->
// path:将代码下载到本地的build目录中// name:${remote fetch}/${project name}.git // remote 没有指定,那么久采用default地址,name=github,从”.."上一层目录下载。// 结合name的值,就从../CyanogenMod/android_build.git这个仓库下载地址。查看作者github仓库,就能找到android_build这个仓库。
<project path="build" name="CyanogenMod/android_build" groups="pdk,tradefed">
<copyfile src="core/root.mk" dest="Makefile" />
</project>
// 将代码下载到本地的build/blueprint目录,从remote="aosp“下载,也就是https://android.googlesource.com// 在结合project的name,下载的仓库地址就是https://android.googlesource.com/platform/build/blueprint
<project path="build/blueprint" name="platform/build/blueprint" groups="pdk,tradefed" remote="aosp" />
// 从android_buld_kati.git仓库下载,放到本地的build/kati目录。
<project path="build/kati" name="CyanogenMod/android_build_kati" groups="pdk,tradefed" />
<project path="build/soong" name="platform/build/soong" groups="pdk,tradefed" remote="aosp" >
<linkfile src="root.bp" dest="Android.bp" />
<linkfile src="bootstrap.bash" dest="bootstrap.bash" />
</project>
<project path="abi/cpp" name="platform/abi/cpp" groups="pdk" remote="aosp" />
<project path="art" name="CyanogenMod/android_art" groups="pdk" />
<project path="bionic" name="CyanogenMod/android_bionic" groups="pdk" />
<project path="bootable/recovery" name="CyanogenMod/android_bootable_recovery" groups="pdk" />
<project path="cts" name="platform/cts" groups="cts,pdk-cw-fs,pdk-fs" remote="aosp" />
<project path="dalvik" name="CyanogenMod/android_dalvik" groups="pdk-cw-fs,pdk-fs" />
<project path="developers/build" name="platform/developers/build" remote="aosp" />
<project path="development" name="CyanogenMod/android_development" groups="pdk-cw-fs,pdk-fs" />
<project path="device/common" name="device/common" groups="pdk-cw-fs,pdk-fs" remote="aosp" />
``` ...
转
最新推荐文章于 2023-08-24 14:10:46 发布