Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,552 Members 47,651 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Lultima
Old
#11  
Lultima's Avatar
Senior Member
Thanks Meter 530
Posts: 292
Join Date: Sep 2010
Location: Port Royal
After 3 hours i have a compiled Kang-update.zip !!! Thanks
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
 
craigacgomez
Old
#12  
craigacgomez's Avatar
Senior Member
Thanks Meter 2,613
Posts: 1,828
Join Date: Jan 2010
Location: Lake Forest, CA

 
DONATE TO ME
Sweet... great job... nice to have some shortcuts... now I'm gonna use this to schedule sync and build... thanks a million

CRAiG GoMEZ

Donate to me

Google LGE Nexus 5 [D820] | SlimKat (Android 4.4.2) - SlimRoms
Google Samsung Nexus 10 [GT-P8110HAEXAR] ThunderKat (Android 4.4.2) - craigacgomez
 
electrostat
Old
#13  
Member
Thanks Meter 1
Posts: 44
Join Date: Aug 2010
Trying on Debian right now (commented out the sources update ) Will post back with results.
 
nicandris
Old
#14  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 198
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
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.
 
electrostat
Old
#15  
Member
Thanks Meter 1
Posts: 44
Join Date: 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.
 
nicandris
Old
#16  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 198
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
Quote:
Originally Posted by electrostat View Post
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
 
electrostat
Old
#17  
Member
Thanks Meter 1
Posts: 44
Join Date: Aug 2010
Quote:
Originally Posted by nicandris View Post
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
 
drigerott
Old
#18  
Senior Member
Thanks Meter 49
Posts: 291
Join Date: Jan 2010
Location: Torino
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
 
nicandris
Old
#19  
nicandris's Avatar
Recognized Developer - OP
Thanks Meter 198
Posts: 1,102
Join Date: Jan 2009
Location: Nicosia
Quote:
Originally Posted by drigerott View Post
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
 
drigerott
Old
(Last edited by drigerott; 26th February 2011 at 07:48 PM.)
#20  
Senior Member
Thanks Meter 49
Posts: 291
Join Date: Jan 2010
Location: Torino
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)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes