Linux Scroll

Just another WordPress.com site

ubuntu 10.10 compile Android-x86 Froyo

Unmark:

$ sudo vi /etc/apt/sources.list

deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner

$ sudo apt-get update

Install require packages:

$ sudo apt-get -y install git-core gnupg flex bison gperf libsdl-dev libesd0-dev 

libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev libc6-dev-i386
g++-multilib lib32z1-dev lib32ncurses5-dev libx11-dev gcc-multilib ia32-libs
x11proto-core-dev libx11-dev lib32readline5-dev lunch sun-java6-jdk curl

Edit:

$ nano ~/.bashrc

Add:

export JAVA_HOME=/usr/lib/jvm/java-6-sun

export ANDROID_JAVA_HOME=$JAVA_HOME

Download Android-x86 source code

$ cd

$ mkdir ~/bin
$ curl http://android.git.kernel.org/repo > ~/bin/repo
$ chmod +x ~/bin/repo
$ export PATH=$PATH:~/bin/
$ mkdir froyo
$ cd froyo
$ repo init -u git://git.android-x86.org/manifest.git -b froyo-x86
$ repo sync

Build

$ chmod +x build/envsetup.sh

$ source build/envsetup.sh
$ lunch
$ make iso_img TARGET_PRODUCT=generic_x86
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: