Compiling cm12.1

Source: Internet
Author: User

Background
    1. Ubuntu 14.04 64-bit, hard disk space greater than 100G
    2. Update the system to the latest version and enter it under terminal
sudo apt-get updatesudo apt-get upgrade
    1. Install the required packages for compilation
sudo apt-getInstall Bison Build-essentialCurl Flex git gnupg gperf libesd0-devLibncurses5-devLibsdl1. 2-devLibwxgtk2. 8-devLIBXML2 LIBXML2-utilsLzop OPENJDK-7-JDKOpenJDK-7-jrePngcrush Schedtool SQUASHFS-toolsXsltproc Zip zlib1g-devG++-Multilib GCC-multilibLib32ncurses5-devLib32readline-gplv2-devLib32z1-dev
    1. Establishing the Repo command
mkdir -p ~/bincurl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repochmod a+x ~/bin/repo"export PATH=~/bin:$PATH" >> ~/.bashrc

This step is important, many people fail here, note that there is a need for a ladder.

Synchronous source
    1. Create a new folder to store the source code, here take ~/android/cm as an example
mkdir -p ~/android/cmcd ~/android/cm
    1. Initializing the source directory
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1
    1. Download source code
repo sync

If the intermittent network, or error, re-repo sync a bit can continue ~
Note: 获取预编译的部分文件 not required after CM12

Compile ROM
. build/envsetup.shbreakfast bacon

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Compiling cm12.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.