Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,778,176 Members 51,480 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] Compile CM/AOSP for MOTO E [SOURCES FOR MOTO E]

Tip us?
 
xperiafan13
Old
(Last edited by xperiafan13; 19th August 2014 at 08:37 PM.)
#1  
xperiafan13's Avatar
Senior Member - OP
Thanks Meter 1551
Posts: 457
Join Date: Jul 2011
Location: México
Default [GUIDE] Compile CM/AOSP for MOTO E [SOURCES FOR MOTO E]

How to Build CyanogenMod for Moto E (codename: condor)

What you’ll need
Add a comment to this section
  • A Moto E
  • A relatively recent computer (Linux distribution (http://www.linuxmint.com/) w/a reasonable amount of RAM and about 35 GB of free storage. The less RAM you have, the longer the build will take. Using SSDs results in faster builds than traditional hard drives.
  • A USB cable compatible with the Moto E (typically micro USB, but older devices may use mini USB or have a proprietary cable)
  • A decent Internet connection & reliable electricity
  • Some familiarity with basic Android operation and terminology. It would help if you’ve installed custom roms on other devices and are familiar with what a recovery image such as ClockworkMod is, for example. It may also be useful to know some basic command line concepts such as cd for “change directory”, the concept of directory hierarchies, that in Linux they are separated by /, etc.

Install the Build Packages

sudo apt-get install

Code:
bison build-essential curl flex git gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre phablet-tools pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev
FOR 64 BITS
Code:
g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
Create the directories

Code:
$ mkdir -p ~/bin
$ mkdir -p ~/android/system
Initialize the CyanogenMod source repository

Code:
$ cd ~/android/system/
$ repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0

repo sync -c
Get prebuilt apps

Code:
cd ~/android/system/vendor/cm
./get-prebuilts

GET MOTOROLA FILE FOR BUILD


Code:
ALL SOURCES TO COMPILE CYANOGENMOD OR OTHER ROM FOR MOTO E.... 
SOURCES
ALL IS DONE

Code:
cd ~/android/system
. build/envsetup.sh
brunch condor
The Following 6 Users Say Thank You to xperiafan13 For This Useful Post: [ Click to Expand ]
 
TheStrix
Old
#2  
TheStrix's Avatar
Senior Member
Thanks Meter 120
Posts: 347
Join Date: May 2014
Location: ▫ⓂⓊⓂⒷⒶⒾ▫

 
DONATE TO ME
Thanks for the guide!!
 
xperiafan13
Old
#3  
xperiafan13's Avatar
Senior Member - OP
Thanks Meter 1551
Posts: 457
Join Date: Jul 2011
Location: México
Default All sources...

Im fork all soucers that you need to compile without problem..
All is already patched...
The Following User Says Thank You to xperiafan13 For This Useful Post: [ Click to Expand ]
 
lasithwaruna
Old
#4  
Junior Member
Thanks Meter 1
Posts: 13
Join Date: Aug 2013
Quote:
Originally Posted by xperiafan13 View Post
Im fork all soucers that you need to compile without problem..
All is already patched...
Dear Sir,

I tried to build a custom ROM for moto E with your sources. But im getting following error when. Could you please advice me to resolve this matter.


hardware/qcom/display/msm8960/libhwcomposer/hwc_utils.cpp: In function 'int qhwc::hwc_sync(hwc_context_t*, hwc_display_contents_1_t*, int, int)':
hardware/qcom/display/msm8960/libhwcomposer/hwc_utils.cpp:676:37: error: aggregate 'qhwc::hwc_sync(hwc_context_t*, hwc_display_contents_1_t*, int, int)::msm_rotator_buf_sync rotData' has incomplete type and cannot be defined
hardware/qcom/display/msm8960/libhwcomposer/hwc_utils.cpp:684:26: error: 'MSM_ROTATOR_IOCTL_BUFFER_SYNC' was not declared in this scope
make: *** [/home/nodeone/moto_e/cm11/out/target/product/condor/obj/SHARED_LIBRARIES/hwcomposer.msm8610_intermediates/hwc_utils.o] Error 1
make: *** Waiting for unfinished jobs....



roomservie.xml
============

<project name="xperiafan-xda/android_device_moto_condor" path="device/moto/condor" revision="cm-11.0" />
<project name="xperiafan-xda/android_device_qcom_common" path="device/moto/qcom-common" remote="github" />
<project name="xperiafan-xda/kernel_moto_condor" path="kernel/moto/condor" revision="Kit-Kat" />
<project name="JackpotClavin/android_vendor_moto_condor" path="vendor/moto/condor" revision="cm-11.0" />

Thank you,
Best Regards,
Lasith.
The Following User Says Thank You to lasithwaruna For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes