You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
Restart udev before re-plugging your device for it to be detected:
141
-
142
-
$ sudo service udev restart
143
-
144
-
Re-run configure:
145
-
146
-
./config.sh [device name]
147
-
148
-
### Building against a custom Gecko
149
-
150
-
It can sometimes be useful to build against a different Gecko than the one specified in the manifest, e.g. a mozilla-central checkout that has some patches applied. To do so, edit .userconfig:
151
-
152
-
GECKO_PATH=/path/to/mozilla-central
153
-
GECKO_OBJDIR=/path/to/mozilla-central/objdir-gonk
154
-
155
-
Note that if you switch your userconfig's gecko path, you need to rm -rf the objdir and rebuild.
156
-
157
-
## Build
158
-
159
-
Run build.sh or bld.sh to build B2G.
160
-
161
-
./build.sh
162
-
163
-
If you want to just build gecko or some other project, just specify it:
164
-
165
-
./build.sh gecko
166
-
167
-
## Flash/Install
168
-
169
-
Make sure your phone is plugged in with usb debugging enabled.
170
-
171
-
To flash everything on your phone:
172
-
173
-
./flash.sh
174
-
175
-
To flash system/userdata/boot partitions on fastboot phones:
176
-
177
-
./flash.sh system
178
-
./flash.sh boot
179
-
./flash.sh user
180
-
181
-
To update gecko:
182
-
183
-
./flash.sh gecko
184
-
185
-
To update gaia:
186
-
187
-
./flash.sh gaia
188
-
189
-
## Update Repos
190
-
191
-
To update all repos:
192
-
193
-
git pull
194
-
./repo sync
195
-
196
-
To update a specific repo (eg, gaia):
197
-
198
-
./repo sync gaia
199
-
200
-
## Debug
201
-
202
-
To restart B2G and run B2G under gdb:
203
-
204
-
./run-gdb.sh
205
-
206
-
To attach gdb to a running B2G process:
207
-
208
-
./run-gdb.sh attach <PID>
209
-
210
-
## Test
211
-
212
-
To run the Marionette test suite on the emulator:
213
-
214
-
./test.sh
215
-
216
-
To run specific tests (individual files, directories, or ini files):
0 commit comments