This article covers how to use the sources
Downloading
- Use this link to initialise the environment and download all the necessary packages: http://source.android.com/source/initializing.html
- mkdir ~/bin
- PATH=~/bin:$PATH
- curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
- chmod a+x ~/bin/repo
- mkdir WORKING_DIR
- cd WORKING_DIR
-
- For gingerbread release: repo init -u git://github.com/popdog123/android_manifest.git -b gingerbread
- For ICS release: repo init -u git://github.com/popdog123/android_manifest.git -b ics
- repo sync
Building
- . build/envsetup.sh
- lunch -> select oxygen_p500 from the menu
- make -j8 oxygen
- your zip will be in out/target/product/p500 named update-oxygen-... .zip (GB) or update.zip (ICS)
WARNING
Just like source.android.com states, Android is best built on Ubuntu 10.04 LTS. Using newer builds of Ubuntu (or other distros) might require additional patches to the source. You can find all of them on Google.