Project

General

Profile

NexusSI902xBuild » History » Revision 11

Revision 10 (Paul Kocialkowski, 01/21/2014 04:01 PM) → Revision 11/16 (Paul Kocialkowski, 12/25/2014 12:13 PM)

h1. Nexus S (I902x) Build 

 h2. Prerequisites 

 The following are required This explains how to build Replicant for the Nexus S (I902x): (I902x).  

 h2. Prerequisites 

 Before building, you must make sure that: 
 * Build You have installed the build dependencies: [[BuildDependenciesInstallation]] 
 * You have downloaded Replicant 4.2 sources: [[ReplicantSources]] 

 
 * Your sources are up to date: [[ReplicantSources#DownloadingUpdating-the-source-from-the-repos|Downloading/Updating the source from the repos]] 
 * Your terminal is running in the directory where the sources were downloaded 
 
 h2. Build Warning 

 *There is no need to *Do not build as root*, building root, always build as a regular user should be preferred. user.* 

 In h2. Building 

 Setup the source tree root folder, run: 
 build environment:  
 <pre> 
 source build/envsetup.sh 
 lunch replicant_crespo-userdebug 
 export ANDROID_JAVA_HOME=$JAVA_HOME 
 </pre> 

 Then, start Start the build: 
 <pre> 
 parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) 
 make -j$parallel_tasks bacon 
 </pre> 
 

 The -j@n@ -jn argument indicates is to indicate the number of parallel tasks during the build (you build.  
 You can remove it from the command line to have only one task at a time). 
 @$parallel_tasks@ holds an optimized number of parallel tasks for your hardware. You may want to reduce this number if e.g. the computer runs out of RAM during the build. time. With fast hardware, best results will come with @-j9@, @-j16@ and @-j32@. 

 h2. Produced binaries Output files 

 The produced binaries files are located at: 
 * built target images: @out/target/product/crespo/@ for the target 
 * built host tools: @out/host/linux-x86/bin/@ for the host