Make sure you have all the dependencies installed
See the steps on devmo.
(On the Mac, do this inside the volume you created)
git clone [email protected]:mozilla-b2g/B2G.git
Have your phone attached to your computer to do this, so that the config script can pull binaries down.
In the B2G project directory:
./config.sh flame
# Cores to use
MAKE_FLAGS=-j6
# Skip the First-Time Use screens
NOFTU=1
# Enable source inspection from within gaia dev tools
DEVICE_DEBUG=1
# See https://bugzilla.mozilla.org/show_bug.cgi?id=771765#c34
export MOZ_NUWA_PROCESS=1
# Path to your gecko source tree, which will be cross-compiled
# to run on the device
GECKO_PATH=/path/to/firefox/mozilla-central
# There is a GAIA_PATH variable, but it does nothing.
VARIANT=userdebug # include test apps
#VARIANT=user # omit the test apps
To build gecko, inside your B2G project dir:
./build.sh gecko
To flash gecko, likewise:
./flash.sh gecko
To build and flash gaia, inside your gaia dir, not the B2G dir:
rm -rf profile && make reset-gaia
To push a new user.js
to the profile on the device, e.g., to set a pref:
adb shell stop b2g
adb push ./user.js /data/local/user.js
adb shell start b2g