Linux Software - Repo

repo 命令

下载mirror提高之后下载速度

1
repo init -u git:xxx/manifest -b branch –-mirror

通过mirror 下载代码, –depth 只下载最近的一次提交

1
repo init -u git:xxx/manifest -b branch –reference=path --depth 1

同步代码

1
repo sync -cj 32

切换所有分支到指定分支

1
repo start master --all

代码编译

1
2
3
1. source build/envsetup.sh
2. lunch (选择对应的机型)
3. ./build.sh fullbuild | tee build.log

Android 编译环境配置

1
2
3
4
5
sudo apt-get install make
sudo apt install python-pip
pip install lxml
sudo apt-get install python-apt
sudo apt-get install python-debian
0%