Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[HOWTO] Build CyanogenMod 11.0 for Nexus 7

OP fattire

13th February 2013, 05:17 AM   |  #981  
#define's Avatar
Recognized Contributor
Flag solar.sys://earth.pl/as/in
Thanks Meter: 2,187
 
2,014 posts
Join Date:Joined: May 2012
Donate to Me
More
Re: [HOWTO] Build CM10.1 for Nexus 7
Quote:
Originally Posted by TheDarkDefender

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: [ View ]
13th February 2013, 05:30 AM   |  #982  
TheDarkDefender's Avatar
Recognized Contributor
Thanks Meter: 4,265
 
3,479 posts
Join Date:Joined: Aug 2012
More
Re: [HOWTO] Build CM10.1 for Nexus 7
Quote:
Originally Posted by bhargz16

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
13th February 2013, 05:34 AM   |  #983  
.torrented's Avatar
Recognized Contributor
Flag Suffolk, VA
Thanks Meter: 1,476
 
2,789 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by bradman117

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

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

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

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: [ View ]
13th February 2013, 05:34 AM   |  #984  
#define's Avatar
Recognized Contributor
Flag solar.sys://earth.pl/as/in
Thanks Meter: 2,187
 
2,014 posts
Join Date:Joined: May 2012
Donate to Me
More
Re: [HOWTO] Build CM10.1 for Nexus 7
Quote:
Originally Posted by TheDarkDefender

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: [ View ]
13th February 2013, 05:43 AM   |  #985  
azoller1's Avatar
Senior Member
Flag Lenexa
Thanks Meter: 1,656
 
1,776 posts
Join Date:Joined: Aug 2011
Donate to Me
More
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
13th February 2013, 05:51 AM   |  #986  
#define's Avatar
Recognized Contributor
Flag solar.sys://earth.pl/as/in
Thanks Meter: 2,187
 
2,014 posts
Join Date:Joined: May 2012
Donate to Me
More
Re: [HOWTO] Build CM10.1 for Nexus 7
Quote:
Originally Posted by azoller1

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: [ View ]
13th February 2013, 06:49 AM   |  #987  
azoller1's Avatar
Senior Member
Flag Lenexa
Thanks Meter: 1,656
 
1,776 posts
Join Date:Joined: Aug 2011
Donate to Me
More
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
13th February 2013, 06:52 AM   |  #988  
fattire's Avatar
OP Recognized Developer
Thanks Meter: 4,511
 
1,550 posts
Join Date:Joined: 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: [ View ]
13th February 2013, 06:59 AM   |  #989  
bradman117's Avatar
Senior Member
Flag Utah, Kaysville
Thanks Meter: 1,551
 
1,433 posts
Join Date:Joined: Jan 2011
Donate to Me
More
i got it all workin thanks to bhargz16!
13th February 2013, 07:02 AM   |  #990  
#define's Avatar
Recognized Contributor
Flag solar.sys://earth.pl/as/in
Thanks Meter: 2,187
 
2,014 posts
Join Date:Joined: May 2012
Donate to Me
More
Re: [HOWTO] Build CM10.1 for Nexus 7
Quote:
Originally Posted by bradman117

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: [ View ]
Post Reply Subscribe to Thread

Tags
building, cyanogenmod, nexus, recovery, walkthrough
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes