Project

General

Profile

DeprecatedNative64BitBuild » History » Version 3

Paul Kocialkowski, 04/18/2011 10:42 AM

1 2 Paul Kocialkowski
= Replicant Native 64 Bit Build =
2
3 1 Paul Kocialkowski
This page explains how to configure a 64b native build. The goal is to build Replicant without the need of 32b compatibility libs and to produce 64b host binaries (adb, fastboot, emulator, etc).
4
5
'''Note: This is a quite experimental and long process. Although you don't risk any damage to your computer while trying to set this up, you should better already have basic knowledge about building gcc, dealing with Makefiles and other related stuff, since some errors may append.''' 
6 2 Paul Kocialkowski
7 3 Paul Kocialkowski
Note for the whole page: when a line is prefixed with #, that means that you have to run the command as root. Don't copy the # on the shell. 
8
9 2 Paul Kocialkowski
== Required tools ==
10
11
(Basic building tools)
12
13
== Building the toolchain ==
14 1 Paul Kocialkowski
15 3 Paul Kocialkowski
First, you'll need to download binutils, gcc-core, gcc-g++, gmp and mpfr:
16 2 Paul Kocialkowski
17
{{{
18
mkdir replicant-toolchain
19
cd replicant-toolchain
20
wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.tar.bz2
21
wget http://ftp.gnu.org/gnu/gcc/gcc-4.4.3/gcc-core-4.4.3.tar.bz2
22
wget http://ftp.gnu.org/gnu/gcc/gcc-4.4.3/gcc-g++-4.4.3.tar.bz2
23
wget http://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.bz2
24
wget http://ftp.gnu.org/gnu/mpfr/mpfr-3.0.1.tar.bz2
25
tar -xf binutils-2.21.tar.bz2
26
tar -xf gcc-core-4.4.3.tar.bz2
27
tar -xf gcc-g++-4.4.3.tar.bz2
28
tar -xf gmp-4.3.2.tar.bz2
29 1 Paul Kocialkowski
tar -xf mpfr-3.0.1.tar.bz2
30 3 Paul Kocialkowski
mv gmp-4.3.2 gcc-4.4.3/
31
mv mpfr-3.0.1 gcc-4.4.3/
32
}}}
33
34
Now, you have to build binutils and gcc for the arm-eabi target:
35
{{{
36
cd binutils-2.21
37
./configure --target=arm-eabi --prefix=/usr/local
38
make
39
# make install
40
cd ../gcc-4.4.3
41
mkdir build
42
cd build
43
../configure --target=arm-eabi --prefix=/usr/local --with-mpfr=../mpfr-3.0.1/ --with-gmp=../gmp-4.3.2/ --enable-shared
44
make
45
# make install
46 2 Paul Kocialkowski
}}}