Jump to content

  1. 0
  2. 0
  3. 0/5

Rate this Topic

* * * * *
7 votes

[TUTORIAL] So You Want To Build AOKP ICS for the Toro? [Ubuntu 10.04]

  • This topic is locked

OP ProTekk

ProTekk

Developer

Posted 07 February 2012 - 01:32 PM #1

This is strictly just a reference guide/tutorial! If you cannot simply follow directions and copy/paste, I'm not going to help you! This is idiot-proof.

Build Environment

  • Operating system -- Tested on Ubuntu 10.04 (64bit)
  • Terminal
  • Decent hardware (minimum of at least a dual core CPU and 4 GB of RAM)
  • Optimally have an SSD (standard mechanical drives work as well but slow down the process drastically)
  • Must have required packages for building installed, I will list them further down

Required Packages


Simply copy and paste this in a terminal window:


sudo apt-get install curl git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib


Let that install and then proceed.


Getting the Source

  • Make required directories
  • Obtain repo binary
  • Add repo binary to your path
  • Give repo binary proper permissions
  • Initialize empty repo
  • Sync repo

Alright, so now we're getting there. I have outlined the basics of what we're about to do and broke them down as I know them. This is all pretty much going to be copy/paste so it'll be fairly difficult to screw this up :)


Copy/paste:


Make directory for repo binary

mkdir ~/bin


Add directory for repo binary to your path

PATH=~/bin:$PATH


Download repo binary and place it in the proper directory

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo


Give the repo binary the proper permissions

chmod a+x ~/bin/repo


Create directory for where the AOKP repo will be stored and synced

mkdir ~/aokp


Move to our new AOKP directory

cd ~/aokp


Initialize the AOKP repo and download the manifest

repo init -u git://github.com/AOKP/platform_manifest.git -b ics


Sync AOKP source

repo sync


Start the build


This is probably the EASIEST part of all, simply copy/paste this command and walk away!

. build/envsetup.sh && brunch toro


Syncing the repo is dependent upon your Internet connection. It can take anywhere from 30 minutes to several hours to fully sync. Same thing goes for build times. Don't expect this to be short. If you have patience and have no build errors, you'll end up with a flashable zip in ~/aokp/out/target/product/toro! Happy crack-flashing!



** 04/21/12 Edit - fixed repo init branch to reflect ics rather than master. - ZB

Edited by ProTekk, 27 July 2012 - 03:14 AM.

  • 31 Likes
HTC DROID Incredible - Retired
HTC Thunderbolt - Retired
HTC DROID Incredible 2 - Retired
Samsung Galaxy Nexus - Daily Driver
HP TouchPad 32 GB
http://www.twitter.com/ProTekkFZS

akellar

akellar

Android Addict

Posted 07 February 2012 - 01:56 PM #2

So once this has been done once - where would you pick back up from to keep the repo up to date? Simply sync again? Thanks for doing this btw!
  • 0 Likes

OP ProTekk

ProTekk

Developer

Posted 07 February 2012 - 02:01 PM #3

So once this has been done once - where would you pick back up from to keep the repo up to date? Simply sync again? Thanks for doing this btw!


Yep, cd to ~/aokp/ and repo sync then build again.
  • 2 Likes
HTC DROID Incredible - Retired
HTC Thunderbolt - Retired
HTC DROID Incredible 2 - Retired
Samsung Galaxy Nexus - Daily Driver
HP TouchPad 32 GB
http://www.twitter.com/ProTekkFZS

drhodus32

drhodus32

Supporting Member

  • 62 posts

Posted 07 February 2012 - 05:38 PM #4

Make sure everyone knows that syncing the repo doesn't always ensure full functional builds. All dependant on what has/has not been pushed and committed in Team Kangs git . Updates are made all the time by Roman and crew, and knowing how to interpret source code and make ROMS is a lot different from just build setup lunch and ota make. Love that u are doing this for the community though...its a good way for people to at least start reading and stop just requesting lol

Sent from my Galaxy Nexus using Tapatalk
  • 0 Likes

jpricesd

jpricesd

Android Enthusiast

Posted 07 February 2012 - 05:40 PM #5

This is awesome! Thanks for this
  • 0 Likes

drhodus32

drhodus32

Supporting Member

  • 62 posts

Posted 07 February 2012 - 05:41 PM #6

Not including frameworks base changes from Pete (which I believe is where they fork from, correct me if I'm wrong please)

Sent from my Galaxy Nexus using Tapatalk
  • 0 Likes

drhodus32

drhodus32

Supporting Member

  • 62 posts

Posted 07 February 2012 - 05:43 PM #7

Best thing to do is also get VERY familiar with Github...start reading and have fun!!!

Sent from my Galaxy Nexus using Tapatalk
  • 0 Likes

roman

roman

7zip Hero

Posted 07 February 2012 - 06:34 PM #8

Not including frameworks base changes from Pete (which I believe is where they fork from, correct me if I'm wrong please)

Sent from my Galaxy Nexus using Tapatalk


AOKP frameworks/base is forked from AOSP :)
  • 1 Likes

cordell

cordell

pıoɹpu∀ ʇɹǝdxƎ

Posted 07 February 2012 - 06:53 PM #9

Is everyone getting this error below?

* [new tag] android-sdk-4.0.3_r1 -> android-sdk-4.0.3_r1
* [new tag] android-sdk-adt_r16.0.1 -> android-sdk-adt_r16.0.1
Fetching projects: 24% (60/249)
error: Exited sync due to fetch errors

edit...seems to happen when it reaches sdk, i think I should maybe update it, lol!

Edited by cordell, 07 February 2012 - 07:20 PM.

  • 0 Likes
If you want to buy me a Coffee or Red Bull, please use the email address or the link in my Profile, Thanks!


Posted Image

lortay78

lortay78

Supporting Member

Posted 07 February 2012 - 09:59 PM #10

Thanks Again ProTekk
  • 0 Likes