mozilla

Revision 305641 of Building B2G for QEMU Emulator

  • Revision slug: Mozilla/Boot_to_Gecko/Building_B2G_for_QEMU_Emulator
  • Revision title: Building B2G for QEMU Emulator
  • Revision id: 305641
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment

Revision Content

{{obsolete_header()}}

{{WarningStart()}}This article is obsolete. See Building and installing Boot to Gecko for the complete guide to building Firefox OS.{{WarningEnd()}}

It is assumed you've already setup your build environment and cloned the repositories.

The following steps  allow you to build - and run - B2G on your emulator.  Do NOT run them as root.

$ cd B2G
$ make sync

Build the configuration for QEMU:
$ make config-qemu

Next, build the gonk backend and then the system itself:
$ make gonk
$ make


NOTE:   if ./emu.sh - your emulator - doesn't run at first, you'll need to make it executable:
$ chmod +x emu.sh

Lastly, run the emulator:
$ ./emu.sh

NOTE:  After cloning your repositories or making your build the first time, you can "clean" them - e.g. put them into the state so that the latest pull is the same as a fresh clone.

To do this, from your repo root:
$ make sync; git clean -xfd; git submodule foreach "git clean -xfd"
Alternately, you can try:
$ make mrproper

Revision Source

<p>{{obsolete_header()}}</p>
<p>{{WarningStart()}}This article is obsolete. See <a href="/en-US/docs/Mozilla/Boot_to_Gecko/Building_and_installing_Boot_to_Gecko" title="/en-US/docs/Mozilla/Boot_to_Gecko/Building_and_installing_Boot_to_Gecko">Building and installing Boot to Gecko</a> for the complete guide to building Firefox OS.{{WarningEnd()}}</p>
<p>It is assumed you've already <a href="/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment" title="https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko/Setting_Up_Boot_to_Gecko_Build_Environment">setup your build environment and cloned the repositories</a>.</p>
<p>The following steps&nbsp; allow you to<strong> build - and run - B2G on your emulator</strong>.&nbsp; Do NOT run them as root.</p>
<p><span style="font-family: inherit;"><span style="font-family: &quot;Courier New&quot;,Courier,monospace;">$ cd B2G</span></span><br />
  <span style="font-family: inherit;"><span style="font-family: &quot;Courier New&quot;,Courier,monospace;">$ make sync</span></span></p>
<p><a class="external" href="http://3.bp.blogspot.com/-5o6HoCR0xE0/Tydf8jj-UPI/AAAAAAAAAMk/EfcvWBaWv-w/s320/Make+Sync.tiff"><img alt="" class="default" src="http://3.bp.blogspot.com/-5o6HoCR0xE0/Tydf8jj-UPI/AAAAAAAAAMk/EfcvWBaWv-w/s320/Make+Sync.tiff" /></a></p>
<p>Build the configuration for QEMU:<br />
  <code>$ make config-qemu</code></p>
<p>Next, build the gonk backend and then the system itself:<br />
  <code>$ make gonk<br />
  $ make</code><br />
  <br />
  NOTE:&nbsp;&nbsp; if ./emu.sh - your emulator - doesn't run at first, you'll need to make it executable:<br />
  <code>$ chmod +x emu.sh</code><br />
  <br />
  Lastly, run the emulator:<br />
  <code>$ ./emu.sh</code></p>
<p>NOTE:&nbsp; After cloning your repositories or making your build the first time, you can "clean" them - e.g. put them into the state so that the latest pull is the same as a fresh clone.</p>
<p>To do this, from your repo root:<br />
  <span style="font-family: &quot;Courier New&quot;,Courier,monospace;">$ make sync; git clean -xfd; git submodule foreach "git clean -xfd"</span><br />
  Alternately, you can try:<br />
  <span style="font-family: &quot;Courier New&quot;,Courier,monospace;"><span style="font-family: inherit;"><span style="font-family: &quot;Courier New&quot;,Courier,monospace;">$ make mrproper</span></span></span></p>
Revert to this revision