Gaia/Hacking: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 43: Line 43:
You can download a nightly build of B2G Desktop from [http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-central/ http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-central/] for Linux, OS X and Windows.
You can download a nightly build of B2G Desktop from [http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-central/ http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-central/] for Linux, OS X and Windows.


Nightly builds include gaia by default, and they should just run out of the box.
Nightly builds include gaia by default, and they should just run out of the box.  This is done by using a wrapper program.  When a profile is bundled with the nightly build (GAIADIR specified in the mozconfig), the binary 'b2g' is a wrapper program and 'b2g-bin' is the actual b2g binary.


If you want to modify gaia, you still need to separately clone and "build" Gaia, in the same way as when using Firefox Nightly:
If you want to modify gaia, you still need to separately clone and "build" Gaia, in the same way as when using Firefox Nightly:
Line 51: Line 51:
  $ DEBUG=1 make
  $ DEBUG=1 make


Then you just run with B2G Desktop instead of Firefox (note b2g-bin, not b2g):  
Then you just run with B2G Desktop instead of Firefox.  The nightlies produced for TBPL use 'b2g-bin'.  If you build a desktop build yourself without specifying "GAIADIR=/path/to/gaia/repo" in your mozconfig, use 'b2g':  


  $ /path/to/b2g-bin -profile /path/to/gaia/profile
  $ /path/to/b2g-bin -profile /path/to/gaia/profile
Line 85: Line 85:
  # make sure this line is commented.
  # make sure this line is commented.
  #ac_add_options --enable-b2g-ril
  #ac_add_options --enable-b2g-ril
If you'd like to build with a packaged profile and include the b2g wrapper script, you can add the following to your mozconfig (with correct path):
GAIADIR=/path/to/gaia/repo


Then run make inside the mozilla-central directory:
Then run make inside the mozilla-central directory:
Confirmed users
1,377

edits

Navigation menu