1. 编译环境 Ubuntu 18.04.4、python3.6
2.sudo apt-get install curl
3.mkdir ~/bin
4.cd ~/bin
5.sudo curl http://commondatastorage.googleapis.com/git-repo-downloads/repo
6.chmod a+x ~/bin/repo
7.export PATH=~/bin:$PATH
8.sudo apt-get install git
9.repo init -u https://source.codeaurora.org/quic/la/platform/manifest.git -b release -m LA.UM.5.6.r1-06700-89xx.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
10.repo sync
11.sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo apt-get install openjdk-8-jre
12.Ubuntu 增加 swap 分区 (增加 10G 以上)
Ubuntu 增加 swap 分区
13.sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev g++-multilib tofrodos python-markdown libxml2-utils xsltproc libssl-dev
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
14. 笼罩 AndroidSDK
15. 笼罩 no_pmi_patch(cp -rf /www/new_patch/camera_patch/* /root/my_android/)
16. 批改 build/envsetup.sh 文件最初一行增加 export LC_ALL=C
17./root/google_android2/kernel/msm-3.18/drivers/gpioclk 的 Makefile 文件
15.source build/envsetup.sh
16.lunch msm8953_32-userdevelop 或者 lunch msm8953_32-userrelease 或者 lunch msm8953_32-userdebug
17.make -j8