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
View Poll Results: Did you like this Guide?
Yes 2 100.00%
No 0 0%
Voters: 2. You may not vote on this poll

Post Reply

Tutorial [Guide] How To Compile CyanogenMod 7 (2.3.7) From Source

OP hashroot

25th December 2012, 06:26 PM   |  #1  
hashroot's Avatar
OP Recognized Contributor
Flag Mumbai
Thanks Meter: 1,512
 
479 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Welcome To CyanogenMod 7
Source Compilation Guide


Hello Folks, This Guide is about Compiling CyanogenMod 7 From Source For Galaxy Fit (Beni) .

Quote:

This is my small attempt to Motivate everyone In Compiling Android . I HATE Porting

Remember, I'm NOT responsible if something, or anything goes wrong at your end, on any device or system.

Requirements:
  • Ubuntu Box (Computer) 12.04 (64-Bit) (Recommended)
  • At least 2.5 Gig core2duo Processor & 2GB RAM
  • Stable Internet Connection (Atleast 1Mbps)
  • 30Gb Hdd space
  • Device running latest CM7
  • Useable Brain
  • Basic Computer Knowledge
  • Lot of Patience


Installing some packages:
Open Terminal(Ctrl+Alt+T)

Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
Install Oracle Java 6 JDK Using This Guide

Install Android SDK Using This Guide

Install Android Debug Beidge (ADB) Using This Guide

Make two folders in home directory bin & android.

Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
Make the repo command executable:
Type:
Code:
chmod a+x ~/bin/repo
You may need to reboot for the changes to take place.(Recommended)

Downloading the source:
cd to android folder
Code:
cd ~/android
Code:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread --repo-url=git://github.com/android/tools_repo.git
Code:
repo sync
If u have good internet connection. Do repo sync -jn (n= Number of simultaneous downloads)

P.S You can download Compressed CyanogenMod 7 Source (Thanks To Keyur2Maru)


Download Device Config and extract it to android/device/samsung/beni (Thanks to tj_style)

Copying of the Proprietary files from Fit running CyanogenMod 7

Connect the device and ensure ADB is working.Type the following for copying:

Code:
cd ~/android/device/samsung/beni/
Code:
./extract-files.sh
Downloading ROM Manager (I hate ROM manager like anything)
Code:
~/android/system/vendor/cyanogen/get-rommanager
Compiling CyanogenMod 7

Code:
cd ~/android/
Code:
. build/envsetup.sh && brunch beni
It will take 70-75mins to compile depending upon your system . After finishing you will get .zip file from ~/android/out/target/product/beni/update.cm-XXXXX-signed.zip. Extract it and delete recovery folder inside it. Make .zip file and flash it via CWM


Thanks & Credits:
Guys Please Press Thanks To Them Too
#My Best Friends (For Inspiring Me)
#My Father (For Giving Me G-Fit)
#Google (For Wonderful Android)
#Speed_bot (For Helping Me Always)
#Wilfredcool007 (For Helping Me Always)
#Tj_Styles(For CWM)
#Feras.Rahman
#xda(For The Platform)
#Me( For The Efforts )


P.S: This Guide is just for reference, Don't Spam the development section
Last edited by hashroot; 2nd February 2013 at 06:05 AM.
The Following 11 Users Say Thank You to hashroot For This Useful Post: [ View ]
25th December 2012, 06:44 PM   |  #2  
droider007's Avatar
Senior Member
Flag kurukshetra
Thanks Meter: 221
 
761 posts
Join Date:Joined: Mar 2012
More
Sry for being noob but if we dual boot ubuntu with windows...can we compile with ubuntu then???

Sent from my GT-S5570 using xda premium
25th December 2012, 06:53 PM   |  #3  
hashroot's Avatar
OP Recognized Contributor
Flag Mumbai
Thanks Meter: 1,512
 
479 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Smile ya
Quote:
Originally Posted by droider007

Sry for being noob but if we dual boot ubuntu with windows...can we compile with ubuntu then???

Sent from my GT-S5570 using xda premium

Yup..why not
The Following 2 Users Say Thank You to hashroot For This Useful Post: [ View ]
25th December 2012, 07:01 PM   |  #4  
speed_bot's Avatar
Recognized Contributor
Flag Bangalore
Thanks Meter: 1,270
 
1,601 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Superb guide remove that vendors extraction part as you have already linked it to my git..just a suggestion..


AND GUYS ANY BUILD ERRORS FEEL FREE TO POST HERE

http://forum.xda-developers.com/show....php?t=2059939

I WILL BE HAPPY TO REPLY

---------- Post added at 11:31 PM ---------- Previous post was at 11:28 PM ----------

Path to the vendors extraction is wrong check it bro..
The Following 2 Users Say Thank You to speed_bot For This Useful Post: [ View ]
25th December 2012, 07:05 PM   |  #5  
hashroot's Avatar
OP Recognized Contributor
Flag Mumbai
Thanks Meter: 1,512
 
479 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Smile
Quote:
Originally Posted by speed_bot

Superb guide remove that vendors extraction part as you have already linked it to my git..just a suggestion..


AND GUYS ANY BUILD ERRORS FEEL FREE TO POST HERE

http://forum.xda-developers.com/show....php?t=2059939

I WILL BE HAPPY TO REPLY

---------- Post added at 11:31 PM ---------- Previous post was at 11:28 PM ----------

Path to the vendors extraction is wrong check it bro..

Ya done. was about to link ur thread for errors
The Following 2 Users Say Thank You to hashroot For This Useful Post: [ View ]
25th December 2012, 07:14 PM   |  #6  
soham jambhekar's Avatar
Senior Member
Flag New Brunswick
Thanks Meter: 194
 
504 posts
Join Date:Joined: Dec 2011
More
superb work rishabh !
:thumbup:


Sent from my GT-S5670 using xda premium
The Following User Says Thank You to soham jambhekar For This Useful Post: [ View ]
25th December 2012, 07:20 PM   |  #7  
hashroot's Avatar
OP Recognized Contributor
Flag Mumbai
Thanks Meter: 1,512
 
479 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by soham jambhekar

superb work rishabh !
:thumbup:


Sent from my GT-S5670 using xda premium

Thank u so much
The Following 2 Users Say Thank You to hashroot For This Useful Post: [ View ]
11th July 2013, 04:34 PM   |  #8  
manudroid19's Avatar
Senior Member
Thanks Meter: 452
 
262 posts
Join Date:Joined: Feb 2013
I'm surprised... in other guides made me go back to ubuntu 11.10 cause they said that 12.04 was not supported for compiling
Shall I move other time to 11.10???

Thank you for the super guide!!!

Sorry for my eng
Sent from my GT-S6500D using Tapatalk 2
13th July 2013, 04:00 AM   |  #9  
speed_bot's Avatar
Recognized Contributor
Flag Bangalore
Thanks Meter: 1,270
 
1,601 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Quote:
Originally Posted by manu19thebest

I'm surprised... in other guides made me go back to ubuntu 11.10 cause they said that 12.04 was not supported for compiling
Shall I move other time to 11.10???

Thank you for the super guide!!!

Sorry for my eng
Sent from my GT-S6500D using Tapatalk 2

Compiling isn't specific for one distribution. It can be done on any Linux based os which has all required packages
18th August 2013, 02:45 PM   |  #10  
hashroot's Avatar
OP Recognized Contributor
Flag Mumbai
Thanks Meter: 1,512
 
479 posts
Join Date:Joined: Feb 2012
Donate to Me
More
You Can also compile on MacOS!

Sent from my C2104 using XDA Premium 4 mobile app

Post Reply Subscribe to Thread

Tags
2.3.7, compile android from source, cyanogenmod 7
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes