[top]Setting up your machine

Original & more information - http://source.android.com/source/download.html

[top]Linux

[top]Ubuntu Linux (32-bit x86) (10.04)

Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
For froyo (SamdroidMod) you need sun-java6-jdk
Add new source
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
next
Code:
sudo apt-get update
sudo apt-get install sun-java6-jdk

[top]Running Linux in a virtual machine

If you are running Linux in a virtual machine, you will need at least 1.5GB of RAM and 10GB or more of disk space in order to build the Android tree.


[top]Installing Repo

To install, initialize, and configure Repo, follow these steps:
  1. Make sure you have a~/bin directory in your home directory, and check to be sure that this bin directory is in your path:
    Code:
    cd ~
    mkdir bin
    echo $PATH
    If you do not have /home/<user>/bin in your $PATH , add it:
    Code:
    export PATH=$PATH:$HOME/bin
  2. Download the repo script and make sure it is executable:
    Code:
    curl http://android.git.kernel.org/repo >~/bin/repo
    chmod a+x ~/bin/repo


[top]Initializing a Repo client

Froyo for Samsung i5700 (http://github.com/SamdroidMod)
  1. Create an empty directory to hold your working files:
    Code:
    mkdir froyo_spica
    cd froyo_spica
  2. Run "repo init" to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:
    Code:
    repo init -u git://github.com/SamdroidMod/android.git -b froyo
  3. When prompted, configure Repo with your real name and email address.

A successful initialization will end with a message such as
repo initialized in /froyo_spica


[top]Getting the files

To pull down files to your working directory from the repositories as specified in the default manifest, run
Code:
repo sync -j6
For more about "repo sync" and other Repo commands, see Using Repo and Git .
The Android source files will be located in your working directory under their project names.


[top]Configure

Code:
. build/envsetup.sh
Code:
choosecombo
  • Build for the simulator or the device?
    Code:
    1
  • Build type choices are
    Code:
    1
  • Which product would you like?
    Code:
    spica
  • Variant choices are
    Code:
    eng


Code:
make -j`grep 'processor' /proc/cpuinfo | wc -l` otapackage


[top]update.zip for recovery

Code:
out/target/product/GT-I5700/spica-ota-eng.{user-name}.zip


[top]How to add Google Services in update.zip

from CyanogenMod
before make -j....
Code:
cd vendor/spica
./get-google-files -v mdpi
cd ../..
export SPICA_WITH_GOOGLE=1
goto 'Build' section



Bookmarks

Posting Permissions

Posting Permissions
  • You may not create new articles
  • You may not edit articles
  • You may not protect articles
  • You may not post comments
  • You may not post attachments
  • You may not edit your comments