码迷,mamicode.com
首页 > 系统相关 > 详细

LinuxMint 18 编译cm 笔记

时间:2016-06-21 06:28:14      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:

1安装软件

sudo apt-get install gedit git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev gcc-multilib maven tmux screen w3m ncftp ccache

2 安装repo

mkdir ~/bin
git clone git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/
cp git-repo/repo ~/bin/

 

3 设置环境

gedit ~/.bashrc
source ~/.bashrc
alias repo="~/bin/repo"
export USE_CCACHE=1
export CCACHE_DIR=/media/changyuet/cache/ccache

4 同步源码

cd /media/changyuet/android/
mkdir CM13
cd CM13
repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
repo sync --no-clone-bundle -c -j4

5 编译

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

LinuxMint 18 编译cm 笔记

标签:

原文地址:http://www.cnblogs.com/changyuet/p/5602310.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!