New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
swordrune10
Old
(Last edited by swordrune10; 8th September 2012 at 11:10 PM.)
#1  
swordrune10's Avatar
Senior Member - OP
Thanks Meter 380
Posts: 729
Join Date: Mar 2009
Location: Phoenix

 
DONATE TO ME
Default [SCRIPT] Swordrune10's ROM Kitchen

I myself use scripts (that i wrote of course) to build so i wanted to share them with you guys!

spent a few days rearranging, and on some completely redoing, my scripts to come up with this easy to use, dare i say pretty if your into ascii, kitchen.

Features
  • Setup, update, build, and fix
  • Update kitchen app through script
  • Build enviroment installation (only 64 bit) currently supports Ubuntu 10.04 - 12.04, with general support for Fedora, Debian, Linux Mint, Arch Linux, and with semi-general support for Mac OS X
  • Able to build Android Open Kang Project, Android Open Source Project, BAMF Paradigm, Bugless Beast, Codename Android, Cyanogenmod 9, Cyanogenmod 10, Evervolv, ParanoidAndroid, Rooted & Busyboxed AOSP (i made this), STS Dev Team, and Team Gummy
  • Designed to build for nexus devices, but supports other devices



the recommended file directory is as follows:
Code:
android/swordkitchen
android/swordkitchen/.scripts
# Everything below is made by the kitchen
android/repos/[all the repositorys u sync]
android/builds/[the roms that are made]
A word about vendor/swordrune10(my own device file inside rooted and busyboxed aosp):
it works by making Android.mk file execute a bash script, which sets up superuser dependencies and attaches a call to overrider.mk file to full_(the device ur building).mk
currently the directory is messy and doesnt do much other then make sure superuser builds and make your build rom manager ready
i plan on making it a rather independent device vendor and adding other stuff too

Instructions:
  • Boot into a 64-bit Unix System: supports Ubuntu 10.04 - 12.04, with general support for Fedora, Debian, Linux Mint, Arch Linux
  • Download and extract the tar below into a folder inside a folder (android/swordkitchen/{EXTRACT HERE!})
  • Either click "Swordrune10's Kitchen.sh" and open in terminal or open terminal, change directory to extracted one, and type in ./"Swordrune10's Kitchen.sh"
  • Inside Kitchen now!
  • Go to setup kitchen and run 1 (installation of repo) and 2 (setup build enviroment)
  • Initialize the desired repo(s) and sync when it asks if you want to
  • Go back, and go to the build menu, select what u want to build and omg! ur building a rom!! =O
  • Optional:
  • Tweak the romeditor or gitpuller as u like it.. ur changes in these files reflect towards ur builds

You can just use repo to grab it if you want..
Code:
Stable Version:
repo init -u http://github.com/TeamKeyblade/android_manifest.git -b stable

Developer Version ( the one i push to ):
repo init -u http://github.com/TeamKeyblade/android_manifest.git -b master

Server Version:
repo init -u http://github.com/TeamKeyblade/android_manifest.git -b advanced
The Server Version is expected to be put into ur ~/bin folder, if anyone puts it anywhere else please let me know and ill see about making it work perfectly from there. Below should be in ur path on login

Code:
 $HOME/bin/kitchen:$HOME/bin/kitchen/build:$HOME/bin/kitchen/update:$HOME/bin/kitchen/menu:$HOME/bin/kitchen/config
This kitchen is totally open sourced!

Please use Kitchen to update, tar below is for first time installations

Kitchen (Stable Version): (Attachment Below)
md5sum: cdce0387af97badbc699b3181272840d
Attached Files
File Type: gz swordkitchen.tar.gz - [Click for QR Code] (30.9 KB, 315 views)
[ROM][4.1.1] Unofficial CM10 Nightly - Maguro - Toro - Toroplus
[SCRIPT] Swordrune10's ROM Kitchen
Buy me something nice
The Following 37 Users Say Thank You to swordrune10 For This Useful Post: [ Click to Expand ]
 
swordrune10
Old
(Last edited by swordrune10; 8th September 2012 at 11:17 PM.)
#2  
swordrune10's Avatar
Senior Member - OP
Thanks Meter 380
Posts: 729
Join Date: Mar 2009
Location: Phoenix

 
DONATE TO ME
Changelog:
9/8/12
Add Bugless Beast

8/29/12
Add BAMF Paradigm
Reorganize build menu, finally updated nexus 7 to build on all supported repos
Cleanup initial innerworkings

8/28/12
reposetup: fix menu alphabetize derp
bouncer: reinforce $homecheck to be the same as $LOCAL

8/27/12
Added Codename Android

8/26/12
Added ParanoidAndroid

8/16/12
Jellybean all the things!
Powerpc detection ( since thats the new ****ty laptop im stuck with for now... )

changed a bit while doing the full jellybean changeup.. Rooted & Busyboxed is now jellybean ready and i shortened the codename to 'raosp'

previous users who is working with cm10 needs to change the folder name from cm-jellybean to cm-jb

8/5/12
scriptmakir: fix tuna's kernel branch and add cm10 to gitpuller and romeditor
fixkitchen: add cm10

8/4/12
Changed prop repos from koush to TheMuppets
Initial Jellybean commit, adding cyanogenmod 10 and prop setup
Add Nexus 7 to device list

6/22/12
absorb setupprop and setupandro into buildandro
unify reposync, making it shorter code
fix build for the oddities ( buildother, buildotherrepo, and buildsts )
buildfix, buildandro unify's fault
(pre/post)update: be forceful while deleting, also add rm for raosp

6/21/12
move buildautomenu to its own script, and into the main menu
apparently i missed a bunch of commits x.x

6/19/12
make specified devices into a unified build script
add auto build otherrepo functionality
buildotherrepo: remove pointless and unnecessary questions
setupprop: if using buildotherrepo, say where the build is in out folder and exit
move vendor_lunch code to buildandro from buildotherrepo

6/18/12
reposetup: forgot to change to reposync
buildother: if device selected isnt in /xml/local_manifest.xml, add it

6/16/12
Ultra Underp buildauto

6/15/12
Added stable version, which is now the default.. please update then reinitialize your kitchen
Each script from the kitchen can now be called seperately, leaving u the ability to put it in ur path and it will work
Added buildauto, which is cron-friendly and has sleep after build functionality -- configuration is in "Configure Kitchen" menu
Added buildtail, which is paired with buildauto -- note that buildauto's output goes into a text file and with buildtail you can see the output.. this setup is best for remote build servers with recommended setup is paired with dropbox
A lot more polish here and there

6/14/12
tweak ubuntu precise setup
remove hardcoding "ics" as android platform
fix building
make build other repo fully work

Full Changelog
[ROM][4.1.1] Unofficial CM10 Nightly - Maguro - Toro - Toroplus
[SCRIPT] Swordrune10's ROM Kitchen
Buy me something nice
The Following 8 Users Say Thank You to swordrune10 For This Useful Post: [ Click to Expand ]
 
mbroeders
Old
#3  
Senior Member
Thanks Meter 215
Posts: 933
Join Date: May 2010
Location: Amsterdam
Good work. Just wondering, what is the benefit of this script over for instance this compiler tool: http://www.omgubuntu.co.uk/2012/05/g...ol-for-ubuntu/ ?
Current devices:
Samsung Galaxy Nexus (gsm) - Asus Nexus 7 16 GB (wifi)
Old devices:
HTC Desire - Samsung Galaxy S2 - Motorola Xoom - Samsung Galaxy SIII
 
swordrune10
Old
(Last edited by swordrune10; 22nd May 2012 at 11:11 AM.)
#4  
swordrune10's Avatar
Senior Member - OP
Thanks Meter 380
Posts: 729
Join Date: Mar 2009
Location: Phoenix

 
DONATE TO ME
Quote:
Originally Posted by mbroeders View Post
Good work. Just wondering, what is the benefit of this script over for instance this compiler tool: http://www.omgubuntu.co.uk/2012/05/g...ol-for-ubuntu/ ?
honestly? that tool is probably a lot better.. I made this as a learning experience

EDIT: actually now that i think about it mine is kinda better on the fact that my updates itself (as in the actual "program"), u know exactly whats in it since its all scripts, and im gonna put into it ability to modify the rom before its built

Sent from my Galaxy Nexus using XDA
[ROM][4.1.1] Unofficial CM10 Nightly - Maguro - Toro - Toroplus
[SCRIPT] Swordrune10's ROM Kitchen
Buy me something nice
The Following 4 Users Say Thank You to swordrune10 For This Useful Post: [ Click to Expand ]
 
swordrune10
Old
(Last edited by swordrune10; 22nd May 2012 at 11:36 PM.)
#5  
swordrune10's Avatar
Senior Member - OP
Thanks Meter 380
Posts: 729
Join Date: Mar 2009
Location: Phoenix

 
DONATE TO ME
Changelog:
5/22/12
Added build other functionality, you can now build any cm or aosp device
[ROM][4.1.1] Unofficial CM10 Nightly - Maguro - Toro - Toroplus
[SCRIPT] Swordrune10's ROM Kitchen
Buy me something nice
The Following 3 Users Say Thank You to swordrune10 For This Useful Post: [ Click to Expand ]
 
swordrune10
Old
#6  
swordrune10's Avatar
Senior Member - OP
Thanks Meter 380
Posts: 729
Join Date: Mar 2009
Location: Phoenix

 
DONATE TO ME
Changelog:
5/22/12 8pm
Added gitpuller, a symbolic linked file that u can edit to add git pull's to modify the repos
[ROM][4.1.1] Unofficial CM10 Nightly - Maguro - Toro - Toroplus
[SCRIPT] Swordrune10's ROM Kitchen
Buy me something nice
The Following 2 Users Say Thank You to swordrune10 For This Useful Post: [ Click to Expand ]
 
shockem
Old
#7  
shockem's Avatar
Recognized Developer
Thanks Meter 301
Posts: 1,257
Join Date: Sep 2010
Location: Singapore

 
DONATE TO ME
Might come in handy

Sent from my Galaxy Nexus using Tapatalk 2
Current Phone: Google Nexus 4
Previous Phones: Samsung Galaxy Nexus, Google Nexus S, HTC HD2, HTC Desire, iPhone 4, iPhone 3GS, iPhone 3G, etc.

Add me to your circles on Google+

Follow me on Twitter @vevekkk
The Following User Says Thank You to shockem For This Useful Post: [ Click to Expand ]
 
swordrune10
Old
#8  
swordrune10's Avatar
Senior Member - OP
Thanks Meter 380
Posts: 729
Join Date: Mar 2009
Location: Phoenix

 
DONATE TO ME
Changelog:
5/23/12
Added Rooted & Busyboxed AOSP
[ROM][4.1.1] Unofficial CM10 Nightly - Maguro - Toro - Toroplus
[SCRIPT] Swordrune10's ROM Kitchen
Buy me something nice
The Following User Says Thank You to swordrune10 For This Useful Post: [ Click to Expand ]
 
john9
Old
#9  
Account currently disabled
Thanks Meter 263
Posts: 1,591
Join Date: Oct 2011
nice work will try
The Following User Says Thank You to john9 For This Useful Post: [ Click to Expand ]
 
swordrune10
Old
#10  
swordrune10's Avatar
Senior Member - OP
Thanks Meter 380
Posts: 729
Join Date: Mar 2009
Location: Phoenix

 
DONATE TO ME
Changelog:
5/24/12
Added ability to build toroplus thru Rooted & Busyboxed AOSP
Fixed build menu looping, making it having to hit exit one to many times on the main menu
[ROM][4.1.1] Unofficial CM10 Nightly - Maguro - Toro - Toroplus
[SCRIPT] Swordrune10's ROM Kitchen
Buy me something nice

The Following User Says Thank You to swordrune10 For This Useful Post: [ Click to Expand ]