DeprecatedGalaxyTab270P31xxBuild » History » Version 4
Paul Kocialkowski, 01/21/2014 04:02 PM
1 | 3 | Paul Kocialkowski | h1. Galaxy Tab 2 7.0 Build (P31xx) |
---|---|---|---|
2 | 1 | Paul Kocialkowski | |
3 | 3 | Paul Kocialkowski | This explains how to build Replicant for the Galaxy Tab 2 7.0 (P31xx). |
4 | 1 | Paul Kocialkowski | |
5 | h2. Prerequisites |
||
6 | |||
7 | 3 | Paul Kocialkowski | Before building, you must make sure that: |
8 | 4 | Paul Kocialkowski | * You have installed the build dependencies: [[BuildDependenciesInstallation]] |
9 | 3 | Paul Kocialkowski | * You have downloaded Replicant 4.2 sources: [[ReplicantSources]] |
10 | * Your sources are up to date: [[ReplicantSources#DownloadingUpdating-the-source-from-the-repos|Downloading/Updating the source from the repos]] |
||
11 | * Your terminal is running in the directory where the sources were downloaded |
||
12 | 1 | Paul Kocialkowski | |
13 | h2. Warning |
||
14 | |||
15 | *Do not build as root, always build as user.* |
||
16 | |||
17 | h2. Building |
||
18 | |||
19 | 3 | Paul Kocialkowski | h3. P3100 |
20 | 2 | Paul Kocialkowski | |
21 | 1 | Paul Kocialkowski | Setup the build environment: |
22 | <pre> |
||
23 | source build/envsetup.sh |
||
24 | 3 | Paul Kocialkowski | lunch replicant_p3100-userdebug |
25 | 2 | Paul Kocialkowski | export ANDROID_JAVA_HOME=$JAVA_HOME |
26 | </pre> |
||
27 | |||
28 | 3 | Paul Kocialkowski | h3. P3110 |
29 | 2 | Paul Kocialkowski | |
30 | Setup the build environment: |
||
31 | <pre> |
||
32 | 1 | Paul Kocialkowski | source build/envsetup.sh |
33 | 3 | Paul Kocialkowski | lunch replicant_p3110-userdebug |
34 | 1 | Paul Kocialkowski | export ANDROID_JAVA_HOME=$JAVA_HOME |
35 | </pre> |
||
36 | |||
37 | Start the build: |
||
38 | <pre> |
||
39 | parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) |
||
40 | 3 | Paul Kocialkowski | make -j$parallel_tasks bacon |
41 | 1 | Paul Kocialkowski | </pre> |
42 | |||
43 | The -jn argument is to indicate the number of parallel tasks during the build. |
||
44 | 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@. |
||
45 | |||
46 | h2. Output files |
||
47 | |||
48 | 3 | Paul Kocialkowski | The produced files are located at: |
49 | * built target images: @out/target/product/p3100/@, @out/target/product/p3110/@ |
||
50 | 1 | Paul Kocialkowski | * built host tools: @out/host/linux-x86/bin/@ |