Building Nexus S ICS with camera support

From MozillaWiki
Jump to: navigation, search

Overview

In order to build B2G with camera support for the Nexus S running ICS, you need to apply some extra steps to your tree before building.

  1. Apply patch 619144 from bug 740997
  2. Apply patch 619103 from bug 749695
  3. Disable jemalloc in the Gecko build
  4. Build Gonk and Gecko for the Nexus S

The following steps assume that $B2G is the root directory into which you cloned the B2G.git repository (see INSTALL).

Patching Gecko

Add camera support

This step is optional. You only need to apply this patch if you need camera functionality. Patch 619144 from bug 740997 adds ICS camera support to Gecko. To apply it, save the patch to your $B2G/gecko folder and run git apply, e.g.:

$B2G/gecko# git apply bug740997.patch

Fix Makefile.in

Patch 619103 from bug 749695 fixes a bug that occurs when jemalloc is disabled. To apply it, save the patch to your $B2G/gecko folder and run git apply, e.g.:

$B2G/gecko# git apply bug749695.patch

Disable jemalloc

Currently there exists an allocator/deallocator mismatch in the ICS build; to get around it, you need to disable jemalloc in Gecko: open $B2G/glue/gonk-ics/gonk-misc/default-gecko-config and add the following option:

ac_add_options --disable-jemalloc

Note that this change may already be in default-gecko-config, in which case this step is already done for you.

Building Gonk/Gecko

Refer to the detailed instructions in the B2G INSTALL file.