Revision 35474 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: 35474
  • Created:
  • Creator: jhammink
  • Is current revision? No
  • Comment 28 words added

Revision Content

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

FIRST TIME ONLY: you should configure local.mk with WIDGET_BACKEND parameter:

$ sudo nano local.mk
 
and add the following line:
WIDGET_BACKEND=gonk

Now, back to the command line.  First, 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 777 emu.sh

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

Revision Source

<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  allow you to<strong> build - and run - B2G on your emulator</strong>.  Do NOT run them as root.</p>
<p><span style="font-family: inherit;"><span style='font-family: "Courier New",Courier,monospace;'>$ cd B2G</span></span><br> <span style="font-family: inherit;"><span style='font-family: "Courier New",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><strong>FIRST TIME ONLY: </strong>you should configure <code>local.mk</code> with <code>WIDGET_BACKEND </code>parameter:</p>
<p><code>$ sudo nano local.mk</code><br>  <br> and add the following line:<br> <code>WIDGET_BACKEND=gonk</code></p>
<p>Now, back to the command line.  First, build the configuration for QEMU:<br> <br> <code>$ make config-qemu</code></p>
<p>Next, build the gonk backend and then the system itself:</p>
<p><br> <code>$ make gonk<br> $ make</code><br> <br> NOTE:   if ./emu.sh - your emulator - doesn't run at first, you'll need to make it executable:<br> <code>$ chmod 777 emu.sh</code><br> <br> Lastly, run the emulator:<br> <code>$ ./emu.sh</code></p>
Revert to this revision