Project

General

Profile

Actions

NexusSI902xBuild » History » Revision 1

Revision 1/16 | Next »
Matt Kraai, 09/15/2011 12:23 PM


Required Packages
The required packages should be the same as for HTC Dream: see [wiki:BuildDream] Warning
Do not build as root, always build as user. Setup
Get and install the repo tool: {{{
mkdir bin
cd bin
wget http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo
chmod a+x repo
cd ..
}}}
Once kernel.org is back up, repo should be downloaded from http://android.git.kernel.org/repo instead.

Get replicant 2.3: {{{
mkdir replicant-2.3
cd replicant-2.3
../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.3
}}}
Since kernel.org is down, I then had to edit .repo/manifest.xml and replace the default element with the following elements: {{{
<remote fetch="git://codeaurora.org/" name="caf" review="codeaurora.org"/>
<default remote="caf" revision="gingerbread-release" />
}}}
Finally, I ran {{{
../bin/repo sync
}}}

Each time you want to build replicant 2.3 {{{
cd ~/replicant-2.3
../bin/repo sync
source build/envsetup.sh
export ANDROID_JAVA_HOME=$JAVA_HOME
lunch replicant_crespo-eng
make -j$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) distimages #uses arguments like -j9 to speed up build in case of multi-core cpu
}}}
Note that you can use {{{bacon}}} instead of {{{distimages}}} to produce a more complete set of images, including zip files.
Don't forget the {{{distimages}}}/{{{bacon}}} at the end, without that you will have some build errors.

You will find your built images in ./out/target/product/crespo/.

You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/.

Now you are ready to [http://trac.osuosl.org/trac/replicant/wiki/Installation install!]

Updated by Matt Kraai over 13 years ago · 1 revisions

Also available in: PDF HTML TXT