本地存在一套main分支的aosp代码,由于main分支下的build/make/target/product/ 下不存在sdkx_xxx.mk(这种是带Goldfish模拟器的)这种配置文件,只能lunch aosp_cf_x86_64_phone-xxx这种,这种是Cuttlefish模拟器,所以需要切分支,切到android14-release。
进入.repo/manifests,切manifest仓的分支,并关联远程分支。
git checkout -b android14-release origin/android14-release
,执行git pull
。
然后执行repo sync -j4
,就会拉代码。
执行repo start android14-release --all
,确保所有git仓在此分支下。
使用repo sync的时候总是Failed to remove xxx,删除不存在分git仓库失败。
例如
Deleting obsolete path /F/android/tools/rr_prebuilt
Failed to remove /F/android/tools/rr_prebuilt/.git
error: Failed to delete obsolete path /F/android/tools/rr_prebuilt
remove manually, then run sync again
执行sync.py的时候,失败,无法自动移除不存在于manifest中的仓库。
https://gerrit.googlesource.com/git-repo/+/maint/subcmds/sync.py
一开始我以为是权限问题,给repo 和 aosp目录都配置了权限,但是还是不行,