1. 程式人生 > >Deepin 15.4 編譯cm 筆記

Deepin 15.4 編譯cm 筆記

sta dev 筆記 設置 png pin sent sync nbsp

1安裝軟件

sudo apt-get install git-core gnupg flex bison gperf build-essential curl gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev lib32z1-dev ccache libgl1-mesa-dev xsltproc schedtool pngquant unzip maven openjdk-8-jdk

2 安裝repo

mkdir ~/bin
git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo.git
cp git-repo/repo ~/bin/

3 設置環境

sudo gedit /etc/profile

alias repo="~/bin/repo"
export USE_CCACHE=1 export CCACHE_DIR=/media/changyuet/cache/ccache

4 同步源碼

cd /media/changyuet/android/
mkdir CM14.1
cd CM14.1
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
repo sync --no-clone-bundle -c -j4

5 編譯

. build/envsetup.sh
prebuilts/misc/linux-x86/ccache/ccache -M 50G
lunch
make -j8 otapackage
or
brunch xxx

Deepin 15.4 編譯cm 筆記