diff options
author | Android Partner Docs <noreply@android.com> | 2017-06-13 21:04:48 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-06-13 21:04:48 +0000 |
commit | 6ccb9c7cc8450031ad567d3c9776484b50db738b (patch) | |
tree | 7f6d4c62e59afb217fa73d96441bdc0d5478e586 /en/source/building.html | |
parent | 5bb2fb12897c2c887e0808f9b794557f461b04d3 (diff) | |
parent | c391221fea1ab8d0d0fafc0d9a5d099583bcd379 (diff) | |
download | source.android.com-6ccb9c7cc8450031ad567d3c9776484b50db738b.tar.gz |
Merge "Docs: Changes to source.android.com" am: 0a9ccdf0b0
am: c391221fea
Change-Id: I40a59e562166dc00442d2098fca6cddfad1f8b4c
Diffstat (limited to 'en/source/building.html')
-rw-r--r-- | en/source/building.html | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/en/source/building.html b/en/source/building.html index 34aa0db0..aada660b 100644 --- a/en/source/building.html +++ b/en/source/building.html @@ -63,24 +63,28 @@ will be installed in the <code>vendor/</code> hierarchy of the source tree.</p> <p>To ensure the newly installed binaries are properly taken into account after being extracted, delete the existing output of any previous build using:</p> -<pre><code>$ make clobber -</code></pre> +<pre class="devsite-terminal devsite-click-to-copy"> +make clobber +</pre> <h2 id="initialize">Set up environment</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, and the short form is more commonly used in documentation.</p> -<pre><code>$ source build/envsetup.sh -</code></pre> +<pre class="devsite-terminal devsite-click-to-copy"> +source build/envsetup.sh +</pre> <p>or</p> -<pre><code>$ . build/envsetup.sh -</code></pre> +<pre class="devsite-terminal devsite-click-to-copy"> +. build/envsetup.sh +</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> -<pre><code>$ lunch aosp_arm-eng -</code></pre> +<pre class="devsite-terminal devsite-click-to-copy"> +lunch aosp_arm-eng +</pre> <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> @@ -127,8 +131,8 @@ dual-E5520 machine (2 CPUs, 4 cores per CPU, 2 threads per core), the fastest builds are made with commands between <code>make -j16</code> and <code>make -j32</code>.</p> -<pre> -$ make -j4 +<pre class="devsite-terminal devsite-click-to-copy"> +make -j4 </pre> <h2 id="run-it">Run it!</h2> @@ -156,8 +160,8 @@ instructions.</p> <p>The emulator is added to your path automatically by the build process. To run the emulator, type:</p> -<pre> -$ emulator +<pre class="devsite-terminal devsite-click-to-copy"> +emulator </pre> <h2 id="troubleshooting-common-build-errors">Troubleshooting Common Build Errors</h2> @@ -194,8 +198,8 @@ correct JDK to the beginning of your PATH or remove the problematic JDK.</li> unfortunately incompatible with Python 3. In order to use repo, please install Python 2.x:</p> -<pre> -$ apt-get install python +<pre class="devsite-terminal devsite-click-to-copy"> +apt-get install python </pre> <h3 id="case-insensitive-filesystem">Case Insensitive Filesystem</h3> |