首页 > 代码库 > Deepin 15.4 编译cm 笔记

Deepin 15.4 编译cm 笔记

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 笔记