Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,052 Members 46,518 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] Building CM from scratch (the easy way)! - *nix Shell Script

Tip us?
 
nicandris
Old
(Last edited by nicandris; 24th January 2012 at 06:23 PM.) Reason: bacon
#1  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 198
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
Default [DEV] Building CM from scratch (the easy way)! - *nix Shell Script

<BACON>

This will Allow you to build CM7-Nightlies or "Kangs" at any time you please.

Compatible with Ubuntu or rpm distros

It's a bash/sh script for automation, as simple as a double click.

it's downloading and installing all files/repos/sdk/adb/fastboot and compiles. (If you already have some of this installed, it prompts before installing)

-------

Please test it, and report bugs here (files attached)
No donations wanted, just click that THANKS button

Github: https://github.com/nicandris/CM-from-scratch




-------


new build.sh menu


just unzip on ubuntu/linux and run ./douchebuild.sh
if ./douchebuild.sh is not recognized as an executable, just
Code:
sudo chmod 775 douchebuild.sh

You will be asked for sudo pass (since you edit repos and add adb in bin) and some info for git.

after completing you can always create a fresh build from the Desktop shortcut build.sh

ofcourse i don't take any credits for cm, all credit goes to cyanogen and teamdouche. the script is just a shell compilation of the cm wiki.

</BACON>
Attached Files
File Type: zip androidmake_2.5.3.zip - [Click for QR Code] (9.1 KB, 979 views)
File Type: zip androidmake_2.5.4.zip - [Click for QR Code] (9.4 KB, 360 views)
File Type: zip androidmake_2.7.1.zip - [Click for QR Code] (9.8 KB, 2542 views)
The Following 109 Users Say Thank You to nicandris For This Useful Post: [ Click to Expand ]
 
nicandris
Old
(Last edited by nicandris; 8th June 2011 at 07:19 PM.)
#2  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 198
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
Default Reserved

If you want to set only udev try this script
udev.zip
unzip and
Code:
chmod 755 udev.sh
-----

If you already used the main script and want to have the new build.sh menu, run this script
buildshcreator.zip
-----

if you don't want all the files for all the devices to be synced, follow this!
The Following 12 Users Say Thank You to nicandris For This Useful Post: [ Click to Expand ]
 
nicandris
Old
(Last edited by nicandris; 24th January 2012 at 06:23 PM.) Reason: changelog
#3  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 198
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
Default Reserved

CHANGELOG

v1
Supporting only Nexus One (initial release)

v2
Supporting all cyanogenmod official devices. Added menu selection for device

v2.0.1
Fixed some nohup issues. Changed some code lines. fixed an if statement

v2.0.2
HD2/Leo support added

v2.1
Various Bugfixes
New build menu

v2.2
Few bug fixes
Some name changes
MORE options in build.sh!!

v2.3
Minor Bug Fixes

Added new devices:
Motorola Cliq XT
LG G2x
LG Optimus 2X
Samsung Captivate
Samsung Vibrant
Barnes & Noble - Nook Color support

Added udev support for Nook Color


v2.3.2

Fixed selection list
Added HTC Incredible 2 Support

v2.4.1
Added Samsung Galaxy S II and Fascinate support
Added Motorola Droid X support
udevs fixed

v2.4.3
Added HTC Tattoo

v2.5.1
Updated Android SDK to v13
Forced repo to sync from github and not from kernel.org (since kernel.org is down for maintenance)
Bugfix


v2.5.2
Added Nexus S 4G

v2.5.3/2.5.4
minor bugfix x4 :P
changed repo fetch URL


v2.7.1
RPM compatibility
Small bugfix
The Following 12 Users Say Thank You to nicandris For This Useful Post: [ Click to Expand ]
 
Geo411m
Old
#4  
Geo411m's Avatar
Recognized Developer
Thanks Meter 533
Posts: 941
Join Date: Jan 2009
Location: Newington CT

 
DONATE TO ME
Quote:
Originally Posted by nicandris View Post
guys i made a small shell script for automation. tried it twice on clean ubuntu builds and it works just fine!

it's downloading and installing all files/repos/sdk/adb/fastboot and compiles. if anyone has a clean installation (or has the time to create a new vbox to test it try it)

http://dl.dropbox.com/u/6751304/androidmake

just unzip on ubuntu/linux and run ./androidmake

if you are on x64 run this first:
Code:
sudo apt-get update && sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev sun-java6-jdk gitg qt3-dev-tools libqt3-mt-dev eclipse valgrind pngcrush && sudo update-java-alternatives -s java-6-sun
after completing you can always create a fresh build from the Desktop shortcut build.sh
Thanks. this should come in handy since I just reinstalled my linux desktop. I'll try it out later tonight.
[Status] Rooted
[Recovery] Clockworkmod Recovery 6.0.1.9
[ROM] Custom JOP40D JellyBean
[Kernel] Stock
[Launcher] Stock

If you like my work, you can always buy me a soda.
Dropbox Invite. We both receive free extra storage.
The Following 2 Users Say Thank You to Geo411m For This Useful Post: [ Click to Expand ]
 
prettyboy85712
Old
#5  
prettyboy85712's Avatar
Senior Member
Thanks Meter 48
Posts: 995
Join Date: Jun 2007
Location: Tucson, AZ
Quote:
Originally Posted by nicandris View Post
guys i made a small shell script for automation. tried it twice on clean ubuntu builds and it works just fine!

it's downloading and installing all files/repos/sdk/adb/fastboot and compiles. if anyone has a clean installation (or has the time to create a new vbox to test it try it)

http://dl.dropbox.com/u/6751304/androidmake

just unzip on ubuntu/linux and run ./androidmake

if you are on x64 run this first:
Code:
sudo apt-get update && sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev sun-java6-jdk gitg qt3-dev-tools libqt3-mt-dev eclipse valgrind pngcrush && sudo update-java-alternatives -s java-6-sun
after completing you can always create a fresh build from the Desktop shortcut build.sh

ofcourse i don't take any credits for cm, all credit goes to cyanogen and teamdouche. the script is just a shell compilation of the cm wiki.

I was planning to do a GUI or text-based version with more options (more phone support etc) but i don't have the time. if anyone wants to do it the script is there have fun
Thanks. I'll give it a shot tonight.
Phone - Rooted LG G2x
ROM - ParanoidAndroid
Nexus 7
 
rori~
Old
#6  
rori~'s Avatar
Senior Member
Thanks Meter 705
Posts: 3,942
Join Date: Aug 2009
Location: Vienna

 
DONATE TO ME
canīt test it anymore, as I got all setup..but for future, just great!
The Following User Says Thank You to rori~ For This Useful Post: [ Click to Expand ]
 
nicandris
Old
#7  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 198
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
Quote:
Originally Posted by rori~ View Post
canīt test it anymore, as I got all setup..but for future, just great!
well take the ./build.sh only :P it's helpfull (for me that i'm bored to type the make bacon)
 
willverduzco
Old
#8  
willverduzco's Avatar
Portal Administrator
Thanks Meter 2,849
Posts: 6,308
Join Date: Apr 2010
Location: n͖̜̺y̥͔̗̝̠̩̜c̖͙͇̲̞

 
DONATE TO ME
Excellent work, and thanks for sharing. This will be very useful for others. I modified the title and stickied this.
Want something on the XDA Portal? Send us a news tip! - [moderate | film | foto | develop]
 
Lultima
Old
#9  
Lultima's Avatar
Senior Member
Thanks Meter 530
Posts: 292
Join Date: Sep 2010
Location: Port Royal
Sounds Good i'm on testing...
I don't ask for donation, just only hit THANKS BUTTON


[Recovery] CWM Recovery
[System] Android 4.4.2
[ROM] Stock KOT49H Odexed + Chainfire Root
[Radio] M8974A-1.0.25.0.23
[Kernel] Franco Kernel
[Launcher] Google Launcher + XGel
The Following 2 Users Say Thank You to Lultima For This Useful Post: [ Click to Expand ]
 
nicandris
Old
#10  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 198
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
thanx for sticking this up

guys please test and if you find anyth wrong msg me to check it out.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes