Firefox OS/TCP/Patching: Difference between revisions

Jump to navigation Jump to search
Added section on contributing back
(Added how to pull code)
(Added section on contributing back)
Line 15: Line 15:
# <p>How to build all of B2G</p><p>For flatfish, we need some prefix to support tablet distribution and enable some functions. GAIA_DISTRIBUTION_DIR=distribution_tablet is used for supporting tablet distribution of gaia. B2G_SYSTEM_APPS=1 is for moving webapp from /data to /system, and B2G_UPDATER=1 is enable OTA.</p><p><code><span style="color:#006400; background:#D3D3D3">GAIA_DISTRIBUTION_DIR=distribution_tablet B2G_SYSTEM_APPS=1 B2G_UPDATER=1 ./build.sh</span></code></p><p>Building whole system might take a long time, you can take a rest or try to build gecko/gaia if you just modify gecko/gaia.</p>
# <p>How to build all of B2G</p><p>For flatfish, we need some prefix to support tablet distribution and enable some functions. GAIA_DISTRIBUTION_DIR=distribution_tablet is used for supporting tablet distribution of gaia. B2G_SYSTEM_APPS=1 is for moving webapp from /data to /system, and B2G_UPDATER=1 is enable OTA.</p><p><code><span style="color:#006400; background:#D3D3D3">GAIA_DISTRIBUTION_DIR=distribution_tablet B2G_SYSTEM_APPS=1 B2G_UPDATER=1 ./build.sh</span></code></p><p>Building whole system might take a long time, you can take a rest or try to build gecko/gaia if you just modify gecko/gaia.</p>
# <p>How to build Gecko or Gaia only</p><p>Gecko only</p><p><code><span style="color:#006400; background:#D3D3D3">B2G_UPDATER=1 ./build.sh gecko</span></code></p><p>Gaia only</p><p><code><span style="color:#006400; background:#D3D3D3">GAIA_DISTRIBUTION_DIR=distribution_tablet B2G_SYSTEM_APPS=1 ./build.sh gaia</span></code></p>
# <p>How to build Gecko or Gaia only</p><p>Gecko only</p><p><code><span style="color:#006400; background:#D3D3D3">B2G_UPDATER=1 ./build.sh gecko</span></code></p><p>Gaia only</p><p><code><span style="color:#006400; background:#D3D3D3">GAIA_DISTRIBUTION_DIR=distribution_tablet B2G_SYSTEM_APPS=1 ./build.sh gaia</span></code></p>
== Flash the images you build ==
<p>Please make sure adb can connect to your device successfully before flash images. You can do simple test to check adb connection, you will see something like “FLATFISH_123456 device” after typo “adb devices” if adb connection successfully.</p>
# <p>Flash whole images</p><p><code><span style="color:#006400; background:#D3D3D3">./flash.sh</span></code></p>
# <p>Flash gecko only</p><p><code><span style="color:#006400; background:#D3D3D3">./flash.sh gecko</span></code></p>
# <p>Flash gaia only</p><p><code><span style="color:#006400; background:#D3D3D3">./flash.sh gaia</span></code></p>


== Subsequent code pulls ==
== Subsequent code pulls ==
Line 29: Line 35:
</span></code></p>
</span></code></p>


== Flash the images you build ==
== Contributing your code ==
<p>Please make sure adb can connect to your device successfully before flash images. You can do simple test to check adb connection, you will see something like “FLATFISH_123456 device” after typo “adb devices” if adb connection successfully.</p>
 
# <p>Flash whole images</p><p><code><span style="color:#006400; background:#D3D3D3">./flash.sh</span></code></p>
You can either submit a GitHub pull request or fle a bug in Bugzilla with a patch. However, you should almost certainly first discuss it with the B2G or Gaia teams. See the [https://developer.mozilla.org/en-US/Firefox_OS/Developing_Firefox_OS/Quickstart_guide_to_Gaia_development#Contributing_code_back_to_the_project MDN instructions on contributing].  
# <p>Flash gecko only</p><p><code><span style="color:#006400; background:#D3D3D3">./flash.sh gecko</span></code></p>
# <p>Flash gaia only</p><p><code><span style="color:#006400; background:#D3D3D3">./flash.sh gaia</span></code></p>


== WIP bug list ==
== WIP bug list ==
Confirmed users
105

edits

Navigation menu