Browse Source

Update 'README.md'

天问 6 months ago
parent
commit
84753baf9f
1 changed files with 29 additions and 2 deletions
  1. 29 2
      README.md

+ 29 - 2
README.md

@@ -4,9 +4,36 @@ android source
 
 ## develop
 
-
+开发组件:
 * Ubuntu
 * Repo
 * git
 * java
-* 
+
+```
+curl https://raw.githubusercontent.com/esrlabs/git-repo/stable/repo.cmd > ~/bin/repo.cmd
+
+chmod a+x ~/bin/repo
+export PATH=~/bin:$PATH
+
+
+repo sync  -j8       同步代码,8线程同时下载
+repo sync -l 本地checkout代码
+```
+
+由于项目庞大,国内采用下载清华大学镜像压缩包,然后解压后,执行同步
+
+```
+repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b xx版本
+repo sync -l 
+```
+
+
+**编译源码**
+```
+sudo apt-get install zliblg-devf flex bison gperf libsdl-dev libesd0-dev libncureses5-dev libl1-dev
+
+source build/envsetup.sh
+make clean && make -j8
+```
+