Part 2 – The Compilation
This post is more generic than the previous one, every linux may work :
Let’s get the sources, Google uses a tool called “repo” so you need first to get this tool.
mkdir ~/bin
cat >> ~/.bashrc
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fisource ~/.bash_profile
This step allow you to have your own bin directory so you don’t mess your system with binaries that are not managed by emerge.
curl http://android.git.kernel.org/repo > ~/bin/repo chmod a+x ~/bin/repo
Let’s try :
repo --version
repo version v1.6.8.8
(from git://android.git.kernel.org/tools/repo.git)
git version 1.6.5.6
Python 2.6.4 (r264:75706, DecĀ 7 2009, 12:35:13)
[GCC 4.1.2 (Gentoo 4.1.2 p1.3)]Now we will initialize android repository.
mkdir -p ~/src/android cd ~/src/android repo init -u git://android.git.kernel.org/platform/manifest.git -b donut
After a while you will be able to synchronize your repository
repo sync export ANDROID_JAVA_HOME=$JAVA_HOME make
Now compile is running …
272 minutes later, compilation completedĀ (on my AMD Athlon XP 3200+) !
In the next part we will test our fresh build !
See You !














i got this kind of error when running make :
out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/wifi/java/android/net/wifi/IWifiManager.java:793: warning 16: XML missing method android.net.wifi.IWifiManager.Stub#releaseMulticastLock
/home/wd-home/android/src/android/frameworks/base/docs/html/guide/developing/tools/aidl.jd:-303: error 2: Did not find END_INCLUDE(exposing_a_service) in file development/samples/ApiDemos/src/com/example/android/apis/app/RemoteService.java
Hi, Thanks for your comment !
I’ve just rebuild all with a full sync and it did not occured for me. Could you give me a little more information about your system ?
Portage 2.1.6.13 (hardened/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-1.12.13
ACCEPT_KEYWORDS=”amd64″
CBUILD=”x86_64-pc-linux-gnu”
CFLAGS=”-O2 -pipe -march=nocona”
CHOST=”x86_64-pc-linux-gnu”
ok on amd64, it doesn’t compile (see previous post) but on x86 it’s ok !
see you
Loux
i’m compiling it right now on an atom netbook
do i end up with a vanilla rom suitable with all android devices ?
i mean, does it also run on my htc tattoo (if rooted) ?
Hi !
I don’t think there is an ‘all-in-one’ android way, I am not an expert but there is some branches with specific device support for sapphire (HTC Magic) so I guess you will have to add support for your devices (for exemple the camera support is a major problem with Android and HTC Magic)
These articles are not finished, because I choose to work on another project for a while.