[T-Mobile, Samsung Galaxy SIII] Jamison904:
This is a quick walk through to get you started compiling AOKP MR1 4.2.2 from source. I have made it super easy for you and anyone who can read will be able to do it. Again this is for Linux ( 64 bit is a must!!!!.) You will also need at least 50 gigs of free space. ( I would go as far as saying 100 gig but you can get by with 50.)

First you need to download my repo tool Download link

Once you have it download extract to your working folder. Then right click and open terminal here. Then:

chmod +x Repo_Sync.sh

This will make the script executable.

​

Now in the terminal you will do:

. Repo_Sync.sh

This will pull up the main menu.

##########################################################

# Jamison904 Tools #

#========================================================#

# 1 - Install Java-6 #

# 2 - Install Required Packages #

# 3 - Sync AoCP Jellybean #

# 4 - Sync CM9 #

# 5 - Sync AOSP Jellybean #

# 6 - Sync LiquidSmooth JB #

# 7 - sync CNA Jellybean #

# 8 - Sync CM10 #

# 9 - Sync AOKP #

# 10 - Sync AOKP Jellybean #

# 11 - Sync Baked AOSP #

# 12 - Slim 4.2 #

##########################################################

# x - Exit #

##########################################################

Enter option:

​

DO NOT DO OPTION 1. This is older and will undo the version on Java you installed from above and is no longer the supported version of Java.

Now pick option # 2. This will install the required packages you will need to build.

​

Now pick number 10 - Sync AOKP Jellybean. This will make a folder called AOKP and will initiate the repo and download the source ( you can move this folder later.) Follow the on screen prompts and input your name ( Real name ) and a real email address. At this point go have a beer and wash the wife's car. This will take a while depending on your internet speed.

​

Now you will need to add the local manifest so it knows where to get the source for the kernel. Do a "Ctrl and h" to show hidden folders. Now open the . repo folder. Then do a right click and add new document. Rename the new document to local_manifest.xml then copy and paste the code below and then save it.

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github"
fetch="https://github.com/" />
<!-- Kernels -->
<project path="kernel/samsung/d2" name="AOKP/kernel_samsung_d2" remote="aokp" revision="jb-mr1" />
</manifest>

​

Now that you have the local manifest in the . repo folder you will need to download the kernel source.

Do:

repo sync

Almost there.... once it finishes it is time to try your first build.

To start the build type in this command:

. build/envsetup.sh && brunch d2tmo -j5

The . build/envsetup.sh part sets up the environment to build. The && part tells the terminal to also do this. The brunch d2tmo tells it to build for the T-mobile S3. Last the -j5 tells it how many jobs to do at once. The higher the number the more jobs it will do. Be careful though because you can do too many jobs for your computer and will bog out and will even cause a build to fail if you run out of memory. Rule of thumb here is one for each core you have then add one. I have a quad core so I do -j5. If you have a dual core do -j3 and if you are not sure you can leave it off completely. (.build/envsetup.sh && brunch d2tmo)

​

This is where is gets fun. The first build will take a few hours. If you get any errors copy as much of the termial as you can and make a pastebin (www.pastebin.com) and link it here for us to help you with. PLEASE DO NOT PASTE THE WHOLE THING HERE!!! Thanks.
​

Now if you get a screen with AOKP in a few colors then you have a successful build. Time to backup your phone and test out your work. The Finished zip will be in the out folder. AOKP/out/target/product/d2tmo to be exact. You will want to grab the aokp_d2tmo_unofficial_Mar-25-13.zip this is the one you should flash.

​

Almost done. Once you have a successful build you will want to install and activate ccache. This will cut your build time in half or more!!!

First you need to install it.

sudo apt-get install ccache

Put the following in your .bashrc by doing:

gedit ~/.bashrc

now add

export USE_CCACHE=1

save then close.

Now to set it you will need to

ccache -M 50

The 50 stands for 50gigs!!! The recommended size is 50-100GB but the size you use is up to you.

​

Cherry pick how to coming. . . .

​

Check out the awesome how to by my bro Midnight_Rider Link to his write-up. Check it out and be sure to thank him!!!!
​