No edit summary |
No edit summary |
||
Line 58: | Line 58: | ||
repo sync | repo sync | ||
</pre> | </pre> | ||
= Switching between different release branches (or "code-lines") = | |||
In your "android" directory there's an hidden directory called ".repo". This directory holds configuration for the "repo" tools and check-outs of various android projects as bare git repositories. | |||
You will simply need to copy .repo/manifests/default.xml somewhere, edit it, update the .repo/manifest.xml symlink to point to the new file and then re-run "repo sync". |
Revision as of 12:57, 7 August 2010
This document will guide you through the Android PDK (Product Development Kit) setup
Required packages
- Git >= 1.5.4
- gpg
- JDK 5.0, update 12 or higher (Java 6 not supported)
- GCC toolchain, flex, bison-devel, gperf, SDL-devel, esound-devel, wxGTK-devel, zip, curl.
Installation
Basic toolchain:
yum --setopt=group_package_types=mandatory groupinstall 'Development Tools'
Java 5 JDK:
yum install java-1.5.0-gcj java-1.5.0-gcj-devel
Remaining development packages:
yum install git SDL-devel esound-devel wxGTK-devel zip curl
Install the "repo" tool
The repo tool is used to pull from the plethora of git repositories making the android project.
Make sure you have "$HOME/.local/bin" in your PATH (and create that directory if not there already).
mkdir -p ~/.local/bin curl http://android.git.kernel.org/repo > ~/.local/bin/repo chmod +x ~/.local/bin/repo
Initialize the development environment
Create a directory to hold your files:
mkdir android cd android
Download updated repo's "manifest" files: (NOTE: They will be pointing to the post-release semi-stable experimental branch)
repo init -u git://android.git.kernel.org/platform/manifest.git
Now sync (download) all repositories with:
repo sync
Switching between different release branches (or "code-lines")
In your "android" directory there's an hidden directory called ".repo". This directory holds configuration for the "repo" tools and check-outs of various android projects as bare git repositories.
You will simply need to copy .repo/manifests/default.xml somewhere, edit it, update the .repo/manifest.xml symlink to point to the new file and then re-run "repo sync".