mozilla

Revision 217255 of Building Firefox OS

  • Revision slug: Mozilla/Boot_to_Gecko/Building_Boot_to_Gecko
  • Revision title: Building Boot to Gecko
  • Revision id: 217255
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment new page; page created, 200 words added

Revision Content

{{ B2GMain() }}

Once you've set up your build system and performed your initial pull and configure of the code, you can build Boot to Gecko.

Updating your code

If this isn't your very first time building B2G, you might want to pull the latest code before you start to build. To do that, you should update both the B2G tools and the dependencies, using the following two commands:

git pull
./repo sync

You can update a specific make target's repository by specifying its name:

./repo sync gaia

Building

To build Boot to Gecko, simply use the build.sh tool:

cd B2G
./build.sh

If you want to build just a particular module, such as Gecko, you can specify it by name:

./build.sh gecko

To get a list of the modules you can build, you can do:

./build.sh modules

Time for another coffee break, or possibly a nap (especially if this is your first build).

Next steps

After building, your next step depends on whether you built Boot to Gecko for the emulator or for a real mobile device; see the following articles for details:

Revision Source

<p>{{ B2GMain() }}</p>
<p>Once you've <a href="/en/Mozilla/Boot_to_Gecko/B2G_build_prerequisites" title="en/Mozilla/Boot_to_Gecko/B2G_build_prerequisites">set up your build system</a> and performed your <a href="/en/Mozilla/Boot_to_Gecko/Preparing_for_your_first_B2G_build" title="en/Mozilla/Boot_to_Gecko/Preparing_for_your_first_B2G_build">initial pull and configure</a> of the code, you can build Boot to Gecko.</p>
<h2>Updating your code</h2>
<p>If this isn't your very first time building B2G, you might want to pull the latest code before you start to build. To do that, you should update both the B2G tools and the dependencies, using the following two commands:</p>
<pre>git pull
./repo sync
</pre>
<p>You can update a specific make target's repository by specifying its name:</p>
<pre>./repo sync gaia
</pre>
<h2>Building</h2>
<p>To build Boot to Gecko, simply use the <code>build.sh</code> tool:</p>
<pre>cd B2G
./build.sh
</pre>
<p>If you want to build just a particular module, such as Gecko, you can specify it by name:</p>
<pre>./build.sh gecko
</pre>
<p>To get a list of the modules you can build, you can do:</p>
<pre>./build.sh modules
</pre>
<p>Time for another coffee break, or possibly a nap (especially if this is your first build).</p>
<h2>Next steps</h2>
<p>After building, your next step depends on whether you built Boot to Gecko for the emulator or for a real mobile device; see the following articles for details:</p>
<ul> <li><a href="/en/Mozilla/Boot_to_Gecko/Using_the_B2G_simulator" title="en/Mozilla/Boot_to_Gecko/Using_the_B2G_simulator">Using the B2G simulator</a></li> <li><a href="/en/Mozilla/Boot_to_Gecko/Installing_Boot_to_Gecko_on_a_mobile_device" title="en/Mozilla/Boot_to_Gecko/Installing_Boot_to_Gecko_on_a_mobile_device">Installing Boot to Gecko on a mobile device</a></li>
</ul>
Revert to this revision