参考网站:
https://wiki.codeaurora.org/xwiki/bin/QAEP/
https://wiki.codeaurora.org/xwiki/bin/QAEP/release
1.首先下载repo:
a)终端运行git clone git://codeaurora.org/tools/repo.git
b)mkdir ~/bin
c)拷贝repo 到~/bin下面,修改repo权限,chmod a+x ~/bin/repo
d)修改repo
将REPO_URL='git://android.git.kernel.org/tools/repo.git'
改成:REPO_URL='git://codeaurora.org/tools/repo.git'
2.高通源码查找
打开https://wiki.codeaurora.org/xwiki/bin/QAEP/release,找到想要下载的代码的 Manifest(比如:LA.UM.8.2.1.r1-04200-sdm660.0.xml
)
3.下载高通源码
以sdm660 android 10.0为例:
a)终端运行 ~/bin/repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.8.2.1.r1-04200-sdm660.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
===> 实测如果使用上面的命令一直卡住的话,可以后面repo 的删了,如下:
~/bin/repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.8.2.1.r1-04200-sdm660.0.xml
b)repo sync
实测结果如下:
sh:~/works/sdm660$ ~/bin/repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.8.2.1.r1-04200-sdm660.0.xml
Getting repo ...from git://codeaurora.org/tools/repo.git
remote: Enumerating objects: 5506, done.
remote: Counting objects: 100% (5506/5506), done.
remote: Compressing objects: 100% (2529/2529), done.
remote: Total 5506 (delta 3743), reused 4306 (delta 2912)
Receiving objects: 100% (5506/5506), 1.31 MiB | 26.00 KiB/s, done.
Resolving deltas: 100% (3743/3743), done.
From git://codeaurora.org/tools/repo* [new branch] aosp-new/maint -> origin/aosp-new/maint* [new branch] aosp-new/master -> origin/aosp-new/master* [new branch] aosp-new/repo-1 -> origin/aosp-new/repo-1* [new branch] aosp-new/stable -> origin/aosp-new/stable* [new branch] caf-stable -> origin/caf-stable* [new branch] master -> origin/master* [new branch] stable -> origin/stable* [new tag] v1.12.16 -> v1.12.16* [new tag] v1.13.11 -> v1.13.11* [new tag] v1.6.8.1 -> v1.6.8.1* [new tag] v1.7.5 -> v1.7.5* [new tag] v2.5 -> v2.5* [new tag] v1.0 -> v1.0* [new tag] v1.0.1 -> v1.0.1* [new tag] v1.0.2 -> v1.0.2* [new tag] v1.0.3 -> v1.0.3* [new tag] v1.0.4 -> v1.0.4* [new tag] v1.0.5 -> v1.0.5* [new tag] v1.0.6 -> v1.0.6* [new tag] v1.0.7 -> v1.0.7* [new tag] v1.0.8 -> v1.0.8* [new tag] v1.0.9 -> v1.0.9* [new tag] v1.1 -> v1.1* [new tag] v1.10.0 -> v1.10.0* [new tag] v1.10.1 -> v1.10.1* [new tag] v1.10.2 -> v1.10.2* [new tag] v1.10.3 -> v1.10.3* [new tag] v1.10.4 -> v1.10.4* [new tag] v1.11.0 -> v1.11.0* [new tag] v1.11.1 -> v1.11.1* [new tag] v1.12.0 -> v1.12.0* [new tag] v1.12.1 -> v1.12.1* [new tag] v1.12.10 -> v1.12.10* [new tag] v1.12.11 -> v1.12.11* [new tag] v1.12.12 -> v1.12.12* [new tag] v1.12.13 -> v1.12.13* [new tag] v1.12.14 -> v1.12.14* [new tag] v1.12.15 -> v1.12.15* [new tag] v1.12.17 -> v1.12.17* [new tag] v1.12.18 -> v1.12.18* [new tag] v1.12.19 -> v1.12.19* [new tag] v1.12.2 -> v1.12.2* [new tag] v1.12.20 -> v1.12.20* [new tag] v1.12.21 -> v1.12.21* [new tag] v1.12.22 -> v1.12.22* [new tag] v1.12.23 -> v1.12.23* [new tag] v1.12.24 -> v1.12.24* [new tag] v1.12.25 -> v1.12.25* [new tag] v1.12.26 -> v1.12.26* [new tag] v1.12.27 -> v1.12.27* [new tag] v1.12.28 -> v1.12.28* [new tag] v1.12.29 -> v1.12.29* [new tag] v1.12.3 -> v1.12.3* [new tag] v1.12.3.1 -> v1.12.3.1* [new tag] v1.12.30 -> v1.12.30* [new tag] v1.12.30.1 -> v1.12.30.1* [new tag] v1.12.31 -> v1.12.31* [new tag] v1.12.32 -> v1.12.32* [new tag] v1.12.33 -> v1.12.33* [new tag] v1.12.34 -> v1.12.34* [new tag] v1.12.35 -> v1.12.35* [new tag] v1.12.36 -> v1.12.36* [new tag] v1.12.37 -> v1.12.37* [new tag] v1.12.4 -> v1.12.4* [new tag] v1.12.5 -> v1.12.5* [new tag] v1.12.6 -> v1.12.6* [new tag] v1.12.7 -> v1.12.7* [new tag] v1.12.8 -> v1.12.8* [new tag] v1.12.9 -> v1.12.9* [new tag] v1.13.0 -> v1.13.0* [new tag] v1.13.1 -> v1.13.1* [new tag] v1.13.10 -> v1.13.10* [new tag] v1.13.2 -> v1.13.2* [new tag] v1.13.3 -> v1.13.3* [new tag] v1.13.4 -> v1.13.4* [new tag] v1.13.5 -> v1.13.5* [new tag] v1.13.5.1 -> v1.13.5.1* [new tag] v1.13.6 -> v1.13.6* [new tag] v1.13.7 -> v1.13.7* [new tag] v1.13.7.1 -> v1.13.7.1* [new tag] v1.13.8 -> v1.13.8* [new tag] v1.13.9 -> v1.13.9* [new tag] v1.13.9.1 -> v1.13.9.1* [new tag] v1.13.9.2 -> v1.13.9.2* [new tag] v1.13.9.3 -> v1.13.9.3* [new tag] v1.13.9.4 -> v1.13.9.4* [new tag] v1.2 -> v1.2* [new tag] v1.3 -> v1.3* [new tag] v1.3.1 -> v1.3.1* [new tag] v1.3.2 -> v1.3.2* [new tag] v1.4 -> v1.4* [new tag] v1.4.1 -> v1.4.1* [new tag] v1.4.2 -> v1.4.2* [new tag] v1.4.3 -> v1.4.3* [new tag] v1.4.4 -> v1.4.4* [new tag] v1.5 -> v1.5* [new tag] v1.5.1 -> v1.5.1* [new tag] v1.6 -> v1.6* [new tag] v1.6.1 -> v1.6.1* [new tag] v1.6.10 -> v1.6.10* [new tag] v1.6.10.1 -> v1.6.10.1* [new tag] v1.6.10.2 -> v1.6.10.2* [new tag] v1.6.2 -> v1.6.2* [new tag] v1.6.3 -> v1.6.3* [new tag] v1.6.4 -> v1.6.4* [new tag] v1.6.5 -> v1.6.5* [new tag] v1.6.6 -> v1.6.6* [new tag] v1.6.7 -> v1.6.7* [new tag] v1.6.7.1 -> v1.6.7.1* [new tag] v1.6.7.2 -> v1.6.7.2* [new tag] v1.6.7.3 -> v1.6.7.3* [new tag] v1.6.7.4 -> v1.6.7.4* [new tag] v1.6.7.5 -> v1.6.7.5* [new tag] v1.6.8 -> v1.6.8* [new tag] v1.6.8.10 -> v1.6.8.10* [new tag] v1.6.8.11 -> v1.6.8.11* [new tag] v1.6.8.2 -> v1.6.8.2* [new tag] v1.6.8.3 -> v1.6.8.3* [new tag] v1.6.8.4 -> v1.6.8.4* [new tag] v1.6.8.5 -> v1.6.8.5* [new tag] v1.6.8.6 -> v1.6.8.6* [new tag] v1.6.8.7 -> v1.6.8.7* [new tag] v1.6.8.8 -> v1.6.8.8* [new tag] v1.6.8.9 -> v1.6.8.9* [new tag] v1.6.9 -> v1.6.9* [new tag] v1.6.9.1 -> v1.6.9.1* [new tag] v1.6.9.2 -> v1.6.9.2* [new tag] v1.6.9.3 -> v1.6.9.3* [new tag] v1.6.9.4 -> v1.6.9.4* [new tag] v1.6.9.5 -> v1.6.9.5* [new tag] v1.6.9.6 -> v1.6.9.6* [new tag] v1.6.9.7 -> v1.6.9.7* [new tag] v1.6.9.8 -> v1.6.9.8* [new tag] v1.7 -> v1.7* [new tag] v1.7.1 -> v1.7.1* [new tag] v1.7.2 -> v1.7.2* [new tag] v1.7.3 -> v1.7.3* [new tag] v1.7.3.1 -> v1.7.3.1* [new tag] v1.7.4 -> v1.7.4* [new tag] v1.7.4.1 -> v1.7.4.1* [new tag] v1.7.4.2 -> v1.7.4.2* [new tag] v1.7.4.3 -> v1.7.4.3* [new tag] v1.7.6 -> v1.7.6* [new tag] v1.7.6.1 -> v1.7.6.1* [new tag] v1.7.7 -> v1.7.7* [new tag] v1.7.7.1 -> v1.7.7.1* [new tag] v1.7.7.2 -> v1.7.7.2* [new tag] v1.7.7.3 -> v1.7.7.3* [new tag] v1.7.7.4 -> v1.7.7.4* [new tag] v1.7.7.5 -> v1.7.7.5* [new tag] v1.7.7.6 -> v1.7.7.6* [new tag] v1.7.8 -> v1.7.8* [new tag] v1.7.8.1 -> v1.7.8.1* [new tag] v1.7.8.2 -> v1.7.8.2* [new tag] v1.8.0 -> v1.8.0* [new tag] v1.8.1 -> v1.8.1* [new tag] v1.8.2 -> v1.8.2* [new tag] v1.9.0 -> v1.9.0* [new tag] v1.9.1 -> v1.9.1* [new tag] v1.9.2 -> v1.9.2* [new tag] v1.9.3 -> v1.9.3* [new tag] v1.9.4 -> v1.9.4* [new tag] v1.9.5 -> v1.9.5* [new tag] v1.9.6 -> v1.9.6* [new tag] v2.0 -> v2.0* [new tag] v2.1 -> v2.1* [new tag] v2.1.1 -> v2.1.1* [new tag] v2.2 -> v2.2* [new tag] v2.3 -> v2.3* [new tag] v2.4 -> v2.4* [new tag] v2.4.1 -> v2.4.1
Getting manifest ...from git://codeaurora.org/platform/manifest.git
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-289780ba2fd68c3045b2e5f53341abb892283d78.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-b611aef6dd1d895d0a80f5484c797fd258eca790.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-8adb8e346f3ccdff1fddfce6c1f90525d31de481.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-31f32dfb224432e115ce06c5058bde95e31ecb29.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-9e6efbbc029c0d7e5af8acaaa31e17b6bfba4a5f.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-9d849dc8a7090b6eeded3040690a175041593c70.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-0095ec11fd8ada994553dc29abbfdb4b9133ae19.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-f0ce9570a89e8db1ff6e97cd3977bf94b8498dd9.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-738d27f7c27524161dc9c266eb3a9fc1c74b63d5.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-f7733feb31ce32cd4eb463b810ef3893faaea5e8.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-708904016d372fb2ac7ba2090ad354bb53ba3bd3.pack
remote: warning: ignoring extra bitmap file: ./objects/pack/pack-7b33d17a1b33d9c4a9474d7b891b2ec622f7b963.pack
remote: Enumerating objects: 134775, done.
remote: Counting objects: 100% (134775/134775), done.
remote: Compressing objects: 100% (42477/42477), done.
Receiving objects: 44% (59705/134775), 9.86 MiB | 1024 bytes/s