5,606,347 Members 32,928 Now Online
XDA Developers Android and Mobile Development Forum

[HOWTO] Build CyanogenMod 11.0 for Nexus 7

Tip us?
 
#define
Old
#981  
#define's Avatar
Recognized Contributor
Thanks Meter 2178
Posts: 2,012
Join Date: May 2012
Location: solar.sys://earth.pl/as/in

 
DONATE TO ME
Default Re: [HOWTO] Build CM10.1 for Nexus 7

Quote:
Originally Posted by TheDarkDefender View Post
Guys. I have been trying to build for a couple of days. The build completes,but the build date i get is Feb 10th. This is for another device(haida). Does that mean no new commits have been made yet?

Sent from my Nexus 7 using Tapatalk 2
If you do make clobber before starting a new build, the build date wil change to the day you make a fresh build...

Sent from my Nexus 7
The Following User Says Thank You to #define For This Useful Post: [ Click to Expand ]
 
TheDarkDefender
Old
#982  
TheDarkDefender's Avatar
Recognized Contributor
Thanks Meter 3873
Posts: 3,152
Join Date: Aug 2012
Default Re: [HOWTO] Build CM10.1 for Nexus 7

Quote:
Originally Posted by bhargz16 View Post
If you do make clobber before starting a new build, the build date wil change to the day you make a fresh build...

Sent from my Nexus 7
Okay. Thanks.
Make clean is also fine right?

Sent from my Nexus 7 using Tapatalk 2


Current devices : Nexus 4 | Galaxy S4 i9505 | Xperia Neo V | Nexus 7 | Nexus 7 2013 FHD |

Give a man a mask and he will tell you the truth ~Oscar Wilde
 
.torrented
Old
#983  
.torrented's Avatar
Recognized Contributor
Thanks Meter 1360
Posts: 2,702
Join Date: Mar 2011
Location: Suffolk, VA

 
DONATE TO ME
Quote:
Originally Posted by bradman117 View Post
then does that mean it made a build? a flashable zip? i dont seem to find it... in my /home/bradley/android/system/out it shows 3 files and a target folder
It takes time, I would recommend to watch a movie while it goes

Quote:
Originally Posted by bhargz16 View Post
No.. You dont have a build... Even on a powerful machine, compiling a rom takes atleast 15-20 mins... My laptop churns 1 out at the end of 6 hours...

Sent from my Nexus 7
35~40 Minues on my baby (It would go faster if I used my SSD but I don't.)

Quote:
Originally Posted by bradman117 View Post
so what have i done wrong? im confused now.. i just finally got the sources to download and i connected my n7 to pc at one point. was tryin to go with cm10.1 for grouper
The only part you need your device connected is when you need to get the proprietary blobs (cd ~/android/system/device/asus/grouper/) then "./extract-files.sh" I believe that is the command (Please refer to the Cyanogenmod wiki for this)

Quote:
Originally Posted by TheDarkDefender View Post
Guys. I have been trying to build for a couple of days. The build completes,but the build date i get is Feb 10th. This is for another device(haida). Does that mean no new commits have been made yet?

Sent from my Nexus 7 using Tapatalk 2
yea you gotta " make clobber " or " make clean " then " . build/envsetup.sh " and finally " brunch grouper "

hopes this helps

on a side note for the people building (that haven't make a .zip yet) It will take lots of time (for slower computers that is) im guessing for laptops that are dual and quad core 4~8GBs ram are gonna take around 3~7 hours depending on your system and what kind of storage you are using (HDD vs SSD) so be patient (your laptop might even over heat some do) but if you finish you will get something at the end of the terminal saying

Quote:
Running Releasetool.........
MD5:948572347589234759845272435
cm-10.1-021213-UNOFFICIAL.zip
TADA you've made your ROM
The Following User Says Thank You to .torrented For This Useful Post: [ Click to Expand ]
 
#define
Old
#984  
#define's Avatar
Recognized Contributor
Thanks Meter 2178
Posts: 2,012
Join Date: May 2012
Location: solar.sys://earth.pl/as/in

 
DONATE TO ME
Default Re: [HOWTO] Build CM10.1 for Nexus 7

Quote:
Originally Posted by TheDarkDefender View Post
Okay. Thanks.
Make clean is also fine right?

Sent from my Nexus 7 using Tapatalk 2
Yep..
But if i remember correctly, make clean wont update the date..
I could be wrong..
I never use it, so dnt know for sure..
I always just do make clobber

Sent from my Nexus 7
The Following User Says Thank You to #define For This Useful Post: [ Click to Expand ]
 
azoller1
Old
#985  
azoller1's Avatar
Senior Member
Thanks Meter 1565
Posts: 1,684
Join Date: Aug 2011
Location: Lenexa
Default Re: [HOWTO] Build CM10.1 for Nexus 7

So after your first repo sync ever later builds will take a lot less time? And also do you have to repo sync every time to update to a new nightly or version?

Sent from my Nexus 7 using Tapatalk 2
DONATIONS WOULD BE NICE!!-- HERE

Device: LG Spectrum 16GB 4G
Rom: Running Beanstalk Builds
Kernel: Running My S-Kernel JB

Device: Nexus 7 16GB
Rom: Running My AOKP Kangs
Kernel: Running LeanKernel 2.2

MY DEV
GOO.IM FILES/FOLDERS
ANDROID FILE HOST DEVICES
SOURCEFORGE FILES
 
#define
Old
#986  
#define's Avatar
Recognized Contributor
Thanks Meter 2178
Posts: 2,012
Join Date: May 2012
Location: solar.sys://earth.pl/as/in

 
DONATE TO ME
Default Re: [HOWTO] Build CM10.1 for Nexus 7

Quote:
Originally Posted by azoller1 View Post
So after your first repo sync ever later builds will take a lot less time? And also do you have to repo sync every time to update to a new nightly or version?

Sent from my Nexus 7 using Tapatalk 2
No.. Repo sync is used to download source code from git..
You should do repo sync about once a week, to make sure you have the latest code, all up to date..
Builds will take anywhere from 15 mins to 8-9 hours.. Depending on how powerful your machine is... And how many jobs your processor can handle simultaneously..
You dont even need to do make clean or make clobber everytime you build..
But if you make any change in the source/device tree, then you'll have to clean before making a new build, otherwise the changes wont vet picked up...
PS : build time can be reduced by something called CCACHE or Compiler Cache..
Mine reduced from 6.5 hrs down to a little over 2....
Its info is there in the tutorial fattire has written...

Sent from my Nexus 7
The Following User Says Thank You to #define For This Useful Post: [ Click to Expand ]
 
azoller1
Old
#987  
azoller1's Avatar
Senior Member
Thanks Meter 1565
Posts: 1,684
Join Date: Aug 2011
Location: Lenexa
Default Re: [HOWTO] Build CM10.1 for Nexus 7

OK thanks and you only the proprietary files once, and does make clobber or clean take awhile or just a few minutes, and how much ccache do you recommend?

Sent from my Nexus 7 using Tapatalk 2
DONATIONS WOULD BE NICE!!-- HERE

Device: LG Spectrum 16GB 4G
Rom: Running Beanstalk Builds
Kernel: Running My S-Kernel JB

Device: Nexus 7 16GB
Rom: Running My AOKP Kangs
Kernel: Running LeanKernel 2.2

MY DEV
GOO.IM FILES/FOLDERS
ANDROID FILE HOST DEVICES
SOURCEFORGE FILES
 
fattire
Old
#988  
fattire's Avatar
Recognized Developer - OP
Thanks Meter 4371
Posts: 1,517
Join Date: Oct 2010
Info 2 Wikiwikiwiki

I think this is a good time for a fresh plug to check out all the stuff we've written for the wiki, particularly in the development section. Check under Learning to build CM.

So many of the questions that are being asked here are answered there.
The Following 2 Users Say Thank You to fattire For This Useful Post: [ Click to Expand ]
 
bradman117
Old
#989  
bradman117's Avatar
Senior Member
Thanks Meter 1549
Posts: 1,433
Join Date: Jan 2011
Location: Utah, Kaysville

 
DONATE TO ME
i got it all workin thanks to bhargz16!
Samsung Galaxy Nexus & Nexus 7
TWEAKS: V6 SuperCharger!
ROMS PORTED:RemICS-UX & RemICS-JB
[HOWTO][ICS][JB] Porting CM based roms to the Infuse 4G --> Click Here
PLEASE PRESS THANKS!

 
#define
Old
#990  
#define's Avatar
Recognized Contributor
Thanks Meter 2178
Posts: 2,012
Join Date: May 2012
Location: solar.sys://earth.pl/as/in

 
DONATE TO ME
Default Re: [HOWTO] Build CM10.1 for Nexus 7

Quote:
Originally Posted by bradman117 View Post
i got it all workin thanks to bhargz16!
Happy to help!!

Sent from my Nexus 7

The Following User Says Thank You to #define For This Useful Post: [ Click to Expand ]
Tags
building, cyanogenmod, nexus, recovery, walkthrough
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes