OpenHarmony开发笔记:获取源代码(repo安装)
参考博客:Linux ubuntu repo安装方法
创建.bin文件夹
mkdir ~/.bin
添加.bin环境变量
vim ~/.bashrc
末尾添加:
export PATH=~/.bin:$PATH
下载repo
git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
将git-repo中的repo文件复制到.bin目录中,并修改权限
cd git-repocp repo ~/.binchmod a+x ~/.bin/repo
创建OpenHarmony源码的目录
mkdir ~/harmonycd ~/harmonymkdir .repo
将下载的git-repo拷贝到.repo下,并改名为 repo
cp -r git-repo ~/harmony/.repocd ~/harmony/.repomv git-repo repo
获取openharmony源代码
cd ~/harmonyrepo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verifyrepo sync -c
lsapplications build docs drivers kernel test utilsbase build.py domains foundation prebuilts third_party vendor