Post Reply

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

OP nicandris

25th February 2011, 03:30 PM   |  #1  
nicandris's Avatar
OP Recognized Developer
Flag Nicosia
Thanks Meter: 198
 
1,102 posts
Join Date:Joined: Jan 2009
More
<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, 981 views)
File Type: zip androidmake_2.5.4.zip - [Click for QR Code] (9.4 KB, 361 views)
File Type: zip androidmake_2.7.1.zip - [Click for QR Code] (9.8 KB, 2551 views)
Last edited by nicandris; 24th January 2012 at 06:23 PM. Reason: bacon
The Following 109 Users Say Thank You to nicandris For This Useful Post: [ View ]
25th February 2011, 03:30 PM   |  #2  
nicandris's Avatar
OP Recognized Developer
Flag Nicosia
Thanks Meter: 198
 
1,102 posts
Join Date:Joined: Jan 2009
More
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!
Last edited by nicandris; 8th June 2011 at 07:19 PM.
The Following 12 Users Say Thank You to nicandris For This Useful Post: [ View ]
25th February 2011, 03:30 PM   |  #3  
nicandris's Avatar
OP Recognized Developer
Flag Nicosia
Thanks Meter: 198
 
1,102 posts
Join Date:Joined: Jan 2009
More
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
Last edited by nicandris; 24th January 2012 at 06:23 PM. Reason: changelog
The Following 12 Users Say Thank You to nicandris For This Useful Post: [ View ]
25th February 2011, 03:34 PM   |  #4  
Geo411m's Avatar
Recognized Developer
Flag Newington CT
Thanks Meter: 565
 
956 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by nicandris

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.
The Following 2 Users Say Thank You to Geo411m For This Useful Post: [ View ]
25th February 2011, 03:39 PM   |  #5  
prettyboy85712's Avatar
Senior Member
Flag Tucson, AZ
Thanks Meter: 48
 
995 posts
Join Date:Joined: Jun 2007
More
Quote:
Originally Posted by nicandris

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.
25th February 2011, 03:57 PM   |  #6  
rori~'s Avatar
Senior Member
Flag Vienna
Thanks Meter: 705
 
3,942 posts
Join Date:Joined: Aug 2009
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: [ View ]
25th February 2011, 04:13 PM   |  #7  
nicandris's Avatar
OP Recognized Developer
Flag Nicosia
Thanks Meter: 198
 
1,102 posts
Join Date:Joined: Jan 2009
More
Quote:
Originally Posted by rori~

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)
25th February 2011, 04:26 PM   |  #8  
willverduzco's Avatar
Portal Administrator
n͖̜̺y̥͔̗̝̠̩̜c̖͙͇̲̞
Thanks Meter: 2,871
 
6,380 posts
Join Date:Joined: Apr 2010
Excellent work, and thanks for sharing. This will be very useful for others. I modified the title and stickied this.
25th February 2011, 04:30 PM   |  #9  
Lultima's Avatar
Senior Member
Flag Port Royal
Thanks Meter: 530
 
292 posts
Join Date:Joined: Sep 2010
More
Sounds Good i'm on testing...
The Following 2 Users Say Thank You to Lultima For This Useful Post: [ View ]
25th February 2011, 04:34 PM   |  #10  
nicandris's Avatar
OP Recognized Developer
Flag Nicosia
Thanks Meter: 198
 
1,102 posts
Join Date:Joined: Jan 2009
More
thanx for sticking this up

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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software and Hacking General [Developers Only] by ThreadRank