NexusOneBuild » History » Version 18
Paul Kocialkowski, 02/05/2012 02:55 PM
1 | 18 | Paul Kocialkowski | h1. Nexus One Build |
---|---|---|---|
2 | 1 | Denis 'GNUtoo' Carikli | |
3 | 18 | Paul Kocialkowski | This explains how to build Replicant for the Nexus One. |
4 | 1 | Denis 'GNUtoo' Carikli | |
5 | 18 | Paul Kocialkowski | h2. Prerequisites |
6 | 1 | Denis 'GNUtoo' Carikli | |
7 | 18 | Paul Kocialkowski | Before building, you must make sure: |
8 | * You have installed the [[BuildDependencies]] |
||
9 | * You have downloaded Replicant 2.2 or Replicant 2.3 sources: [[GettingReplicantSources]] |
||
10 | * Your sources are up to date: [[GettingReplicantSources#DownloadingUpdating-the-source-from-the-repos|Downloading/Updating the source from the repos]] |
||
11 | * You are in the directory where the sources were downloaded |
||
12 | |||
13 | 7 | Denis 'GNUtoo' Carikli | h2. Warning |
14 | 1 | Denis 'GNUtoo' Carikli | |
15 | *Do not build as root, always build as user.* |
||
16 | 5 | Denis 'GNUtoo' Carikli | |
17 | 18 | Paul Kocialkowski | h2. Building |
18 | 1 | Denis 'GNUtoo' Carikli | |
19 | 18 | Paul Kocialkowski | Setup the build environment: |
20 | 5 | Denis 'GNUtoo' Carikli | <pre> |
21 | 17 | Paul Kocialkowski | source build/envsetup.sh |
22 | lunch replicant_passion-eng |
||
23 | 18 | Paul Kocialkowski | export ANDROID_JAVA_HOME=$JAVA_HOME |
24 | 17 | Paul Kocialkowski | </pre> |
25 | 18 | Paul Kocialkowski | |
26 | Start the build: |
||
27 | 1 | Denis 'GNUtoo' Carikli | <pre> |
28 | 18 | Paul Kocialkowski | parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) |
29 | make -j$parallel_tasks distimages |
||
30 | </pre> |
||
31 | 17 | Paul Kocialkowski | |
32 | 18 | Paul Kocialkowski | The -jn argument is to indicate the number of parallel tasks during the build. |
33 | You can remove it from the command line to have only one task at a time. With fast hardware, best results will come with @-j9@, @-j16@ and @-j32@. |
||
34 | 12 | Paul Kocialkowski | |
35 | 18 | Paul Kocialkowski | h2. Output files |
36 | 12 | Paul Kocialkowski | |
37 | 18 | Paul Kocialkowski | Find the produced files: |
38 | * built target images: @out/target/product/passion/@ |
||
39 | * built host tools: @out/host/linux-x86/bin/@ |