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

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

OP nicandris

25th February 2011, 08:09 PM   |  #11  
Lultima's Avatar
Senior Member
Flag Port Royal
Thanks Meter: 530
 
292 posts
Join Date:Joined: Sep 2010
More
After 3 hours i have a compiled Kang-update.zip !!! Thanks
25th February 2011, 08:32 PM   |  #12  
craigacgomez's Avatar
Senior Member
Flag Lake Forest, CA
Thanks Meter: 3,034
 
1,909 posts
Join Date:Joined: Jan 2010
Donate to Me
More
Sweet... great job... nice to have some shortcuts... now I'm gonna use this to schedule sync and build... thanks a million
26th February 2011, 04:51 AM   |  #13  
Member
Thanks Meter: 1
 
44 posts
Join Date:Joined: Aug 2010
Trying on Debian right now (commented out the sources update ) Will post back with results.
26th February 2011, 08:59 AM   |  #14  
nicandris's Avatar
OP Recognized Developer
Flag Nicosia
Thanks Meter: 199
 
1,108 posts
Join Date:Joined: Jan 2009
More
glad to see that this is helping you guys. if anyone has another phone (except N1) it would be really helpful to send me the proprietary files so i can make this for other devices also (i can do it without but it's easier for users if i have the files) i can explain how to obtain them.
26th February 2011, 12:23 PM   |  #15  
Member
Thanks Meter: 1
 
44 posts
Join Date:Joined: Aug 2010
Is this working for you on a x86*nix build? I get a warning when I start building that only x64 is supported.
26th February 2011, 12:31 PM   |  #16  
nicandris's Avatar
OP Recognized Developer
Flag Nicosia
Thanks Meter: 199
 
1,108 posts
Join Date:Joined: Jan 2009
More
Quote:
Originally Posted by electrostat

Is this working for you on a x86*nix build? I get a warning when I start building that only x64 is supported.

i tried it twice on a x86 and it was fine. AOSP or tmobile's theme engine is not compiling on x86 but cm7 is. i think i twitted abt this a couple of days ago.

http://twitpic.com/43mezo
26th February 2011, 12:36 PM   |  #17  
Member
Thanks Meter: 1
 
44 posts
Join Date:Joined: Aug 2010
Quote:
Originally Posted by nicandris

i tried it twice on a x86 and it was fine. AOSP or tmobile's theme engine is not compiling on x86 but cm7 is. i think i twitted abt this a couple of days ago.

http://twitpic.com/43mezo

Sweet. It's building right now, don't care much about tmobile's theme anyway
26th February 2011, 08:24 PM   |  #18  
Senior Member
Flag Torino
Thanks Meter: 50
 
293 posts
Join Date:Joined: Jan 2010
More
all works perfectly on ubuntu x64 but one thing: how can i build always latest nightly? repo ar different? i must change this? git://github.com/CyanogenMod/android.git -b gingerbread
what is the repo for latest merge? thank you very much thi topic is fantastic
26th February 2011, 08:30 PM   |  #19  
nicandris's Avatar
OP Recognized Developer
Flag Nicosia
Thanks Meter: 199
 
1,108 posts
Join Date:Joined: Jan 2009
More
Quote:
Originally Posted by drigerott

all works perfectly on ubuntu x64 but one thing: how can i build always latest nightly? repo ar different? i must change this? git://github.com/CyanogenMod/android.git -b gingerbread
what is the repo for latest merge? thank you very much thi topic is fantastic

well this is the latest merge just use the buils.sh shortcut from your desktop
26th February 2011, 08:33 PM   |  #20  
Senior Member
Flag Torino
Thanks Meter: 50
 
293 posts
Join Date:Joined: Jan 2010
More
mmmm but the latest merge aren't on rom (like profiles on power down screen etc.)

with this repo we build rc1? or nightly? ^_^

and... build.sh doesn't work properly... i modified like this:

Quote:

cd ~/android/system/;
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread;
repo sync;
cd;
cd ~/android/system/vendor/cyanogen/;
./get-rommanager;
cd ~/android/system/;
. build/envsetup.sh;
lunch cyanogen_passion-eng;
make -j`grep 'processor' /proc/cpuinfo | wc -l` bacon;
cp ~/android/system/out/target/product/passion/update*.zip ~/Scrivania/update-cm7-N1-$(date +%d_%m-%H.%M.%S).zip
echo -e [=-This is an ALPHA-test version of whatever this is-=];



instead of

Quote:

repo sync ;
cp ./vendor/cyanogen/products/cyanogen_passion.mk ./buildspec.mk;
. build/envsetup.sh;
lunch cyanogen_passion-eng;
make -j`grep 'processor' /proc/cpuinfo | wc -l` bacon;
cp ~/android/system/out/target/product/passion/update*.zip ~/Desktop/update-cm7-N1-$(date +%d_%m-%H.%M.%S).zip


is correct? ^^

thanks for you're replay)
Last edited by drigerott; 26th February 2011 at 08:48 PM.

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

Advanced Search
Display Modes