diff options
Diffstat (limited to 'src/source/building-running.jd')
-rw-r--r-- | src/source/building-running.jd | 53 |
1 files changed, 10 insertions, 43 deletions
diff --git a/src/source/building-running.jd b/src/source/building-running.jd index 239ebe68..d9eb0bfa 100644 --- a/src/source/building-running.jd +++ b/src/source/building-running.jd @@ -2,7 +2,7 @@ page.title=Building the System @jd:body <!-- - Copyright 2013 The Android Open Source Project + Copyright 2015 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -24,20 +24,10 @@ page.title=Building the System </div> </div> -The following instructions to build the Android source tree apply to all branches, including <code>master</code>. +<p>The following instructions to build the Android source tree apply to all +branches, including <code>master</code>. The basic sequence of build commands +is as follows:</p> -<h2 id="choosing-a-branch">Choosing a Branch</h2> -<p>Some of the requirements for your build environment are determined by which -version of the source code you plan to compile. See -<a href="build-numbers.html">Codenames, Tags, and Build Numbers</a> for a full listing of branches you may -choose from. You may also choose to download and build the latest source code -(called <code>master</code>), in which case you will simply omit the branch specification -when you initialize the repository.</p> -<p>Once you have selected a branch, follow the appropriate instructions below to -set up your build environment.</p> - - -<p>The basic sequence of build commands is as follows:</p> <h2 id="initialize">Initialize</h2> <p>Initialize the environment with the <code>envsetup.sh</code> script. Note that replacing <code>source</code> with <code>.</code> (a single dot) saves a few characters, @@ -47,6 +37,7 @@ and the short form is more commonly used in documentation.</p> <p>or</p> <pre><code>$ . build/envsetup.sh </code></pre> + <h2 id="choose-a-target">Choose a Target</h2> <p>Choose which target to build with <code>lunch</code>. The exact configuration can be passed as an argument. For example, the following command:</p> @@ -55,34 +46,9 @@ an argument. For example, the following command:</p> <p>refers to a complete build for the emulator, with all debugging enabled.</p> <p>If run with no arguments <code>lunch</code> will prompt you to choose a target from the menu. </p> <p>All build targets take the form <code>BUILD-BUILDTYPE</code>, where the <code>BUILD</code> is a codename -referring to the particular feature combination. Here's a partial list:</p> -<table> -<thead> -<tr> -<th>Build name</th> -<th>Device</th> -<th>Notes</th> -</tr> -</thead> -<tbody> -<tr> -<td>aosp_arm</td> -<td>ARM emulator</td> -<td>AOSP, fully configured with all languages, apps, input methods</td> -</tr> -<tr> -<td>aosp_maguro</td> -<td>maguro</td> -<td>AOSP, running on Galaxy Nexus GSM/HSPA+ ("maguro")</td> -</tr> -<tr> -<td>aosp_panda</td> -<td>panda</td> -<td>AOSP, running on PandaBoard ("panda")</td> -</tr> -</tbody> -</table> -<p>and the BUILDTYPE is one of the following:</p> +referring to the particular feature combination.</p> + +<p>The BUILDTYPE is one of the following:</p> <table> <thead> <tr> @@ -107,7 +73,8 @@ referring to the particular feature combination. Here's a partial list:</p> </table> <p>For more information about building for and running on actual hardware, see <a href="building-devices.html">Building for Devices</a>.</p> -<h2 id="build-the-code">Build the Code</h2> + +<h2 id="build-the-code">Build the code</h2> <p>Build everything with <code>make</code>. GNU make can handle parallel tasks with a <code>-jN</code> argument, and it's common to use a number of tasks N that's between 1 and 2 times the number of hardware |