Project

General

Profile

NexusOneBuild » History » Revision 14

Revision 13 (Paul Kocialkowski, 06/11/2011 09:51 AM) → Revision 14/19 (Paul Kocialkowski, 06/11/2011 09:52 AM)

== Warning == 
  Do not build as root,always build as user. 

 == 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://android.git.kernel.org/repo 
  chmod a+x repo 
  cd .. 
 }}} 
 Get replicant 2.2 
 {{{ 
  mkdir replicant-2.2 
  cd replicant-2.2 
  ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2 
  ../bin/repo sync 
 }}} 

 == Each time you want to build replicant 2.2 == 
 {{{ 
 cd ~/replicant-2.2 
  ../bin/repo sync 
 source build/envsetup.sh 
 export ANDROID_JAVA_HOME=$JAVA_HOME 
 lunch replicant_passion-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/passion/. 

 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!]