Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 330 lines (272 sloc) 9.629 kb
0f51ea4 Initial "build system"
Chris Jones authored
1 # To support gonk's build/envsetup.sh
2 SHELL = bash
3
3d78dce Touch up makefile a bit
Chris Jones authored
4 -include .config.mk
0f51ea4 Initial "build system"
Chris Jones authored
5
3d78dce Touch up makefile a bit
Chris Jones authored
6 .DEFAULT: build
89c6876 @andreasgal add qemu and galaxy s2 kernels
authored
7
ff495bd @ThinkerYzu Export env. ANDROID_SDK_PLATFORM and MAKE_FLAGS to gecko configuration.
ThinkerYzu authored
8 MAKE_FLAGS ?= -j16
572039c @ThinkerYzu Config kernel for Android emulator with goldfish_armv7_defconfig.
ThinkerYzu authored
9 GONK_MAKE_FLAGS ?=
89c6876 @andreasgal add qemu and galaxy s2 kernels
authored
10
d2cd070 Makefile hackery for Galaxy S II, and fix broken -jN
Chris Jones authored
11 HEIMDALL ?= heimdall
e524ff8 Merge
Chris Jones authored
12 TOOLCHAIN_HOST = linux-x86
3d78dce Touch up makefile a bit
Chris Jones authored
13 TOOLCHAIN_PATH = ./glue/gonk/prebuilt/$(TOOLCHAIN_HOST)/toolchain/arm-eabi-4.4.3/bin
14 KERNEL_PATH = ./boot/kernel-android-$(KERNEL)
89c6876 @andreasgal add qemu and galaxy s2 kernels
authored
15
3d78dce Touch up makefile a bit
Chris Jones authored
16 GONK_PATH = $(abspath glue/gonk)
5b7b0e8 @ThinkerYzu Build Gecko for ARMv7 instead of ARMv5
ThinkerYzu authored
17 GONK_TARGET ?= full_$(GONK)-eng
0f51ea4 Initial "build system"
Chris Jones authored
18
19 define GONK_CMD # $(call GONK_CMD,cmd)
3d78dce Touch up makefile a bit
Chris Jones authored
20 cd $(GONK_PATH) && \
0f51ea4 Initial "build system"
Chris Jones authored
21 . build/envsetup.sh && \
3d78dce Touch up makefile a bit
Chris Jones authored
22 lunch $(GONK_TARGET) && \
0f51ea4 Initial "build system"
Chris Jones authored
23 $(1)
24 endef
25
ff495bd @ThinkerYzu Export env. ANDROID_SDK_PLATFORM and MAKE_FLAGS to gecko configuration.
ThinkerYzu authored
26 ANDROID_SDK_PLATFORM ?= android-13
263d23c @ThinkerYzu Add config-qemu make target for Android emulator
ThinkerYzu authored
27 GECKO_CONFIGURE_ARGS ?=
3d12fe0 Add support for B2G widget backend
Michael Wu authored
28 WIDGET_BACKEND ?= android
ff495bd @ThinkerYzu Export env. ANDROID_SDK_PLATFORM and MAKE_FLAGS to gecko configuration.
ThinkerYzu authored
29
b91e60b @ThinkerYzu Use submodule info from .gitmodules to accerate hashing
ThinkerYzu authored
30 define SUBMODULES
31 cat .gitmodules |grep path|awk -- '{print $3;}'
32 endef
33
6bf342c @ThinkerYzu Build submodules only for changing hash value of subdirectories
ThinkerYzu authored
34 # Generate hash code for timestamp and filename of source files
35 #
36 # $(1): the name of subdirectory that you want to hash for.
37 #
38 define DEP_HASH
39 _pwd=$$PWD; \
b91e60b @ThinkerYzu Use submodule info from .gitmodules to accerate hashing
ThinkerYzu authored
40 for sdir in $$($$($(SUBMODULES))|grep $1|awk -- '{print $$2;}'); do \
6bf342c @ThinkerYzu Build submodules only for changing hash value of subdirectories
ThinkerYzu authored
41 cd $$sdir; \
42 git ls-files | xargs -d '\n' stat -c '%Y:%n' --; \
43 cd $$_pwd; \
44 done 2> /dev/null | md5sum | awk -- '{print $$1;}'
45 endef
46
47 # Check hash code of sourc files and run commands for necessary.
48 #
49 # $(1): stamp file (where hash code is kept)
50 # $(2): sub-directory where the module is
51 # $(3): commands that you want to run if any of source files is updated.
52 #
53 define DEP_CHECK
54 echo -n "Checking dependency for $2 ..."; \
55 if [ -e "$1" ]; then \
56 LAST_HASH="`cat $1`"; \
57 CUR_HASH=$$($(call DEP_HASH,$2)); \
58 if [ "$$LAST_HASH" = "$$CUR_HASH" ]; then \
59 echo " (skip)"; \
60 exit 0; \
61 fi; \
62 fi; \
63 echo; \
64 _dep_check_pwd=$$PWD; \
65 $3; \
66 cd $$_dep_check_pwd; \
67 $(call DEP_HASH,$2) > $1
68 endef
69
949b8ec Add temporary target to manually install gecko. Installing it as a syst...
Chris Jones authored
70 # Developers can use this to define convenience rules and set global variabls
71 # XXX for now, this is where to put ANDROID_SDK and ANDROID_NDK macros
72 -include local.mk
73
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
74 .PHONY: build
6e17324 Improve build process for gonk backend
Michael Wu authored
75 build: gecko gecko-$(WIDGET_BACKEND)-hack gonk
0f51ea4 Initial "build system"
Chris Jones authored
76
131fabc @ThinkerYzu Build also kernel for qemu
ThinkerYzu authored
77 ifeq (qemu,$(KERNEL))
78 build: kernel bootimg-hack
79 endif
80
ddf262f @michaelwu Install our own kernel modules in the root fs
michaelwu authored
81 # someone rename the galaxys2 kernel dir plz
82 ifeq (galaxys2,$(KERNEL))
83 KERNEL_DIR=boot/kernel-android-galaxy-s2
84 else
85 KERNEL_DIR=boot/kernel-android-$(KERNEL)
86 endif
87
3d12fe0 Add support for B2G widget backend
Michael Wu authored
88 ifeq (android,$(WIDGET_BACKEND))
949b8ec Add temporary target to manually install gecko. Installing it as a syst...
Chris Jones authored
89 ifndef ANDROID_SDK
90 $(error Sorry, you need to set ANDROID_SDK in your environment to point at the top-level of the SDK install. For now.)
91 endif
92
93 ifndef ANDROID_NDK
94 $(error Sorry, you need to set ANDROID_NDK in your environment to point at the top-level of the NDK install. For now.)
95 endif
3d12fe0 Add support for B2G widget backend
Michael Wu authored
96 endif
0f51ea4 Initial "build system"
Chris Jones authored
97
7278b6e @ThinkerYzu Introduce gecko-only to avoid annoying messages
ThinkerYzu authored
98 define GECKO_BUILD_CMD
949b8ec Add temporary target to manually install gecko. Installing it as a syst...
Chris Jones authored
99 @export ANDROID_SDK=$(ANDROID_SDK) && \
ff495bd @ThinkerYzu Export env. ANDROID_SDK_PLATFORM and MAKE_FLAGS to gecko configuration.
ThinkerYzu authored
100 export ANDROID_SDK_PLATFORM=$(ANDROID_SDK_PLATFORM) && \
949b8ec Add temporary target to manually install gecko. Installing it as a syst...
Chris Jones authored
101 export ANDROID_NDK=$(ANDROID_NDK) && \
68299fc Update version code every time gecko is built
Michael Wu authored
102 export ANDROID_VERSION_CODE=`date +%Y%m%d%H%M%S` && \
ff495bd @ThinkerYzu Export env. ANDROID_SDK_PLATFORM and MAKE_FLAGS to gecko configuration.
ThinkerYzu authored
103 export MAKE_FLAGS=$(MAKE_FLAGS) && \
263d23c @ThinkerYzu Add config-qemu make target for Android emulator
ThinkerYzu authored
104 export CONFIGURE_ARGS="$(GECKO_CONFIGURE_ARGS)" && \
6001f95 Updates to gonk configuration, update gaia
Michael Wu authored
105 export GONK_PRODUCT="$(GONK)" && \
94598fd @jlebar Attempt to keep ld from running out of file descriptors by adding ulimit...
jlebar authored
106 ulimit -n 4096 && \
d2cd070 Makefile hackery for Galaxy S II, and fix broken -jN
Chris Jones authored
107 make -C gecko -f client.mk -s $(MAKE_FLAGS) && \
949b8ec Add temporary target to manually install gecko. Installing it as a syst...
Chris Jones authored
108 make -C gecko/objdir-prof-android package
7278b6e @ThinkerYzu Introduce gecko-only to avoid annoying messages
ThinkerYzu authored
109 endef
110
111 .PHONY: gecko
112 # XXX Hard-coded for prof-android target. It would also be nice if
113 # client.mk understood the |package| target.
114 gecko: gonk
6bf342c @ThinkerYzu Build submodules only for changing hash value of subdirectories
ThinkerYzu authored
115 @$(call DEP_CHECK,gecko/objdir-prof-android/.b2g-build-done,gecko,\
116 $(call GECKO_BUILD_CMD) \
117 )
7278b6e @ThinkerYzu Introduce gecko-only to avoid annoying messages
ThinkerYzu authored
118
119 .PHONY: gecko-only
120 gecko-only:
121 $(call GECKO_BUILD_CMD)
0f51ea4 Initial "build system"
Chris Jones authored
122
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
123 .PHONY: gonk
6e17324 Improve build process for gonk backend
Michael Wu authored
124 gonk: gaia-hack
6bf342c @ThinkerYzu Build submodules only for changing hash value of subdirectories
ThinkerYzu authored
125 @$(call DEP_CHECK,glue/gonk/out/.b2g-build-done,gonk, \
126 @$(call GONK_CMD,make $(MAKE_FLAGS) $(GONK_MAKE_FLAGS)) \
127 )
0f51ea4 Initial "build system"
Chris Jones authored
128
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
129 .PHONY: kernel
0f51ea4 Initial "build system"
Chris Jones authored
130 # XXX Hard-coded for nexuss4g target
131 # XXX Hard-coded for gonk tool support
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
132 kernel:
6bf342c @ThinkerYzu Build submodules only for changing hash value of subdirectories
ThinkerYzu authored
133 @$(call DEP_CHECK,$(KERNEL_PATH)/.b2g-build-done,$(KERNEL_PATH),\
134 PATH="$$PATH:$(abspath $(TOOLCHAIN_PATH))" make -C $(KERNEL_PATH) $(MAKE_FLAGS) ARCH=arm CROSS_COMPILE="ccache arm-eabi-"; \
135 find "$(KERNEL_DIR)" -name "*.ko" | xargs -I MOD cp MOD "$(GONK_PATH)/out/target/product/$(GONK)/root/lib/modules"; \
136 PATH="$$PATH:$(abspath $(TOOLCHAIN_PATH))" make -C $(KERNEL_PATH) $(MAKE_FLAGS) ARCH=arm CROSS_COMPILE="ccache arm-eabi-" zImage \
137 )
0f51ea4 Initial "build system"
Chris Jones authored
138
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
139 .PHONY: clean
0f51ea4 Initial "build system"
Chris Jones authored
140 clean: clean-gecko clean-gonk clean-kernel
141
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
142 .PHONY: clean-gecko
0f51ea4 Initial "build system"
Chris Jones authored
143 clean-gecko:
144 rm -rf gecko/objdir-prof-android
145
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
146 .PHONY: clean-gonk
0f51ea4 Initial "build system"
Chris Jones authored
147 clean-gonk:
148 @$(call GONK_CMD,make clean)
149
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
150 .PHONY: clean-kernel
0f51ea4 Initial "build system"
Chris Jones authored
151 clean-kernel:
89c6876 @andreasgal add qemu and galaxy s2 kernels
authored
152 @PATH="$$PATH:$(abspath $(TOOLCHAIN_PATH))" make -C $(KERNEL_PATH) ARCH=arm CROSS_COMPILE=arm-eabi- clean
6bf342c @ThinkerYzu Build submodules only for changing hash value of subdirectories
ThinkerYzu authored
153 @rm $(KERNEL_PATH)/.b2g-build-done
89c6876 @andreasgal add qemu and galaxy s2 kernels
authored
154
155 .PHONY: config-galaxy-s2
3d12fe0 Add support for B2G widget backend
Michael Wu authored
156 config-galaxy-s2: config-gecko-$(WIDGET_BACKEND)
d2cd070 Makefile hackery for Galaxy S II, and fix broken -jN
Chris Jones authored
157 @echo "KERNEL = galaxy-s2" > .config.mk && \
158 echo "GONK = galaxys2" >> .config.mk && \
159 cp -p config/kernel-galaxy-s2 boot/kernel-android-galaxy-s2/.config && \
160 cd $(GONK_PATH)/device/samsung/galaxys2/ && \
161 echo Extracting binary blobs from device, which should be plugged in! ... && \
162 ./extract-files.sh && \
163 echo OK
0f51ea4 Initial "build system"
Chris Jones authored
164
3d12fe0 Add support for B2G widget backend
Michael Wu authored
165 .PHONY: config-gecko-android
166 config-gecko-android:
e1d9315 Updates to gecko, symlink mozconfig
Michael Wu authored
167 @ln -sf ../config/gecko-prof-android gecko/mozconfig
3d12fe0 Add support for B2G widget backend
Michael Wu authored
168
0bba308 rename b2g to gonk
Michael Wu authored
169 .PHONY: config-gecko-gonk
170 config-gecko-gonk:
e1d9315 Updates to gecko, symlink mozconfig
Michael Wu authored
171 @ln -sf ../config/gecko-prof-gonk gecko/mozconfig
0f51ea4 Initial "build system"
Chris Jones authored
172
92e391b More fixes, and configure vendor blobs
Chris Jones authored
173 define INSTALL_NEXUS_S_BLOB # $(call INSTALL_BLOB,vendor,id)
174 wget https://dl.google.com/dl/android/aosp/$(1)-crespo4g-grj90-$(2).tgz && \
175 tar zxvf $(1)-crespo4g-grj90-$(2).tgz && \
176 ./extract-$(1)-crespo4g.sh && \
177 rm $(1)-crespo4g-grj90-$(2).tgz extract-$(1)-crespo4g.sh
178 endef
179
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
180 .PHONY: config-nexuss4g
0f51ea4 Initial "build system"
Chris Jones authored
181 # XXX Hard-coded for nexuss4g target
3d12fe0 Add support for B2G widget backend
Michael Wu authored
182 config-nexuss4g: config-gecko-android
3d78dce Touch up makefile a bit
Chris Jones authored
183 @echo "KERNEL = samsung" > .config.mk && \
184 echo "GONK = crespo4g" >> .config.mk && \
185 cp -p config/kernel-nexuss4g boot/kernel-android-samsung/.config && \
186 cd $(GONK_PATH) && \
92e391b More fixes, and configure vendor blobs
Chris Jones authored
187 $(call INSTALL_NEXUS_S_BLOB,broadcom,c4ec9a38) && \
188 $(call INSTALL_NEXUS_S_BLOB,imgtec,a8e2ce86) && \
189 $(call INSTALL_NEXUS_S_BLOB,nxp,9abcae18) && \
190 $(call INSTALL_NEXUS_S_BLOB,samsung,9474e48f) && \
3d78dce Touch up makefile a bit
Chris Jones authored
191 make -C $(CURDIR) nexuss4g-postconfig
192
193 .PHONY: nexuss4g-postconfig
194 nexuss4g-postconfig:
92e391b More fixes, and configure vendor blobs
Chris Jones authored
195 $(call GONK_CMD,make signapk && vendor/samsung/crespo4g/reassemble-apks.sh)
0f51ea4 Initial "build system"
Chris Jones authored
196
263d23c @ThinkerYzu Add config-qemu make target for Android emulator
ThinkerYzu authored
197 .PHONY: config-qemu
6e90f56 @ThinkerYzu config-qemu depends on config-gecko-android instead of config-gecko-gonk...
ThinkerYzu authored
198 config-qemu: config-gecko-android
263d23c @ThinkerYzu Add config-qemu make target for Android emulator
ThinkerYzu authored
199 @echo "KERNEL = qemu" > .config.mk && \
5b7b0e8 @ThinkerYzu Build Gecko for ARMv7 instead of ARMv5
ThinkerYzu authored
200 echo "GONK = generic" >> .config.mk && \
201 echo "GONK_TARGET = generic-eng" >> .config.mk && \
4077da2 @ThinkerYzu Build gonk with ARMv7 for QEmu
ThinkerYzu authored
202 echo "GONK_MAKE_FLAGS = TARGET_ARCH_VARIANT=armv7-a" >> .config.mk && \
572039c @ThinkerYzu Config kernel for Android emulator with goldfish_armv7_defconfig.
ThinkerYzu authored
203 make -C boot/kernel-android-qemu ARCH=arm goldfish_armv7_defconfig && \
204 ( [ -e $(GONK_PATH)/device/qemu ] || \
205 mkdir $(GONK_PATH)/device/qemu ) && \
263d23c @ThinkerYzu Add config-qemu make target for Android emulator
ThinkerYzu authored
206 echo OK
207
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
208 .PHONY: flash
d2cd070 Makefile hackery for Galaxy S II, and fix broken -jN
Chris Jones authored
209 # XXX Using target-specific targets for the time being. fastboot is
210 # great, but the sgs2 doesn't support it. Eventually we should find a
211 # lowest-common-denominator solution.
212 flash: flash-$(GONK)
213
fe9f75a @jlebar Adding auto-chmod 755 to make flash with gonk backend.
jlebar authored
214 # flash-only targets are the same as flash targets, except that they don't
215 # depend on building the image.
216
217 .PHONY: flash-only
218 flash-only: flash-only-$(GONK)
219
d2cd070 Makefile hackery for Galaxy S II, and fix broken -jN
Chris Jones authored
220 .PHONY: flash-crespo4g
221 flash-crespo4g: image
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
222 @$(call GONK_CMD,adb reboot bootloader && fastboot flashall -w)
0f51ea4 Initial "build system"
Chris Jones authored
223
fe9f75a @jlebar Adding auto-chmod 755 to make flash with gonk backend.
jlebar authored
224 .PHONY: flash-only-crespo4g
225 flash-only-crespo4g:
226 @$(call GONK_CMD,adb reboot bootloader && fastboot flashall -w)
227
228 # When we're building with gonk, we need to chmod /system/b2g/b2g. Isn't this
229 # fantastic?
230 ifeq (gonk,$(WIDGET_BACKEND))
231 define FLASH_GALAXYS2_CMD_CHMOD_HACK
232 adb wait-for-device
233 adb shell chmod 755 /system/b2g/b2g
234 endef
235 endif
236
237 define FLASH_GALAXYS2_CMD
238 adb reboot download
239 sleep 20
240 $(HEIMDALL) flash --factoryfs $(GONK_PATH)/out/target/product/galaxys2/system.img
241 $(FLASH_GALAXYS2_CMD_CHMOD_HACK)
242 endef
243
d2cd070 Makefile hackery for Galaxy S II, and fix broken -jN
Chris Jones authored
244 .PHONY: flash-galaxys2
245 flash-galaxys2: image
fe9f75a @jlebar Adding auto-chmod 755 to make flash with gonk backend.
jlebar authored
246 $(FLASH_GALAXYS2_CMD)
247
248 .PHONY: flash-only-galaxys2
249 flash-only-galaxys2:
250 $(FLASH_GALAXYS2_CMD)
d2cd070 Makefile hackery for Galaxy S II, and fix broken -jN
Chris Jones authored
251
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
252 .PHONY: bootimg-hack
572039c @ThinkerYzu Config kernel for Android emulator with goldfish_armv7_defconfig.
ThinkerYzu authored
253 bootimg-hack: kernel-$(KERNEL)
254
255 .PHONY: kernel-samsung
256 kernel-samsung:
3d78dce Touch up makefile a bit
Chris Jones authored
257 cp -p boot/kernel-android-samsung/arch/arm/boot/zImage $(GONK_PATH)/device/samsung/crespo/kernel && \
258 cp -p boot/kernel-android-samsung/drivers/net/wireless/bcm4329/bcm4329.ko $(GONK_PATH)/device/samsung/crespo/bcm4329.ko
572039c @ThinkerYzu Config kernel for Android emulator with goldfish_armv7_defconfig.
ThinkerYzu authored
259
260 .PHONY: kernel-qemu
261 kernel-qemu:
262 cp -p boot/kernel-android-qemu/arch/arm/boot/zImage \
263 $(GONK_PATH)/device/qemu/kernel
264
265 kernel-%:
266 @
949b8ec Add temporary target to manually install gecko. Installing it as a syst...
Chris Jones authored
267
8e7bcf9 Build B2G.apk into system.img
Michael Wu authored
268 OUT_DIR := $(GONK_PATH)/out/target/product/$(GONK)/system
269 APP_OUT_DIR := $(OUT_DIR)/app
949b8ec Add temporary target to manually install gecko. Installing it as a syst...
Chris Jones authored
270
271 $(APP_OUT_DIR):
272 mkdir -p $(APP_OUT_DIR)
273
3d12fe0 Add support for B2G widget backend
Michael Wu authored
274 .PHONY: gecko-android-hack
275 gecko-android-hack: gecko
8e7bcf9 Build B2G.apk into system.img
Michael Wu authored
276 mkdir -p $(APP_OUT_DIR)
277 cp -p gecko/objdir-prof-android/dist/b2g-*.apk $(APP_OUT_DIR)/B2G.apk
278 unzip -jo gecko/objdir-prof-android/dist/b2g-*.apk lib/armeabi-v7a/libmozutils.so -d $(OUT_DIR)/lib
1fa7c9b @michaelwu Make missing img files non-fatal
michaelwu authored
279 find glue/gonk/out -iname "*.img" | xargs rm -f
17cd148 @ThinkerYzu Make gecko depends on gonk.
ThinkerYzu authored
280 @$(call GONK_CMD,make $(MAKE_FLAGS) $(GONK_MAKE_FLAGS) systemimage-nodeps)
949b8ec Add temporary target to manually install gecko. Installing it as a syst...
Chris Jones authored
281
0bba308 rename b2g to gonk
Michael Wu authored
282 .PHONY: gecko-gonk-hack
5a6fd6f @jlebar Add gecko back as a dependency on gecko-gonk-hack make target.
jlebar authored
283 gecko-gonk-hack: gecko
3d12fe0 Add support for B2G widget backend
Michael Wu authored
284 rm -rf $(OUT_DIR)/b2g
6e17324 Improve build process for gonk backend
Michael Wu authored
285 mkdir -p $(OUT_DIR)/lib
6569210 @jlebar During gecko-gonk-hack make target, if there are multiple tarballs in th...
jlebar authored
286 # Extract the newest tarball in the gecko objdir.
3d12fe0 Add support for B2G widget backend
Michael Wu authored
287 ( cd $(OUT_DIR) && \
6569210 @jlebar During gecko-gonk-hack make target, if there are multiple tarballs in th...
jlebar authored
288 tar xvfz `ls -t $(PWD)/gecko/objdir-prof-android/dist/b2g-*.tar.gz | head -n1` )
6e17324 Improve build process for gonk backend
Michael Wu authored
289 cp $(OUT_DIR)/b2g/libmozutils.so $(OUT_DIR)/lib
3d12fe0 Add support for B2G widget backend
Michael Wu authored
290 find glue/gonk/out -iname "*.img" | xargs rm -f
17cd148 @ThinkerYzu Make gecko depends on gonk.
ThinkerYzu authored
291 @$(call GONK_CMD,make $(MAKE_FLAGS) $(GONK_MAKE_FLAGS) systemimage-nodeps)
3d12fe0 Add support for B2G widget backend
Michael Wu authored
292
293
c5694fa Build gaia into system image
Michael Wu authored
294 .PHONY: gaia-hack
295 gaia-hack: gaia
296 rm -rf $(OUT_DIR)/home
297 mkdir -p $(OUT_DIR)/home
298 cp -r gaia/* $(OUT_DIR)/home
299
949b8ec Add temporary target to manually install gecko. Installing it as a syst...
Chris Jones authored
300 .PHONY: install-gecko
301 install-gecko: gecko
0e80854 Use b2g "htmlrunner" trampoline by default
Chris Jones authored
302 @adb install -r gecko/objdir-prof-android/dist/b2g-*.apk && \
2b1e066 Boot-to-gecko now working. Update gecko submodule and install-gecko tar...
Chris Jones authored
303 adb reboot
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
304
249f515 Add |make install-gaia| target and INSTALL instructions for it
Chris Jones authored
305 # The sad hacks keep piling up... We can't set this up to be
306 # installed as part of the data partition because we can't flash that
307 # on the sgs2.
308 .PHONY: install-gaia
309 install-gaia:
310 @for i in `ls gaia`; do adb push gaia/$$i /data/local/$$i; done
311
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
312 .PHONY: image
0f51ea4 Initial "build system"
Chris Jones authored
313 image: build
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
314 @echo XXX stop overwriting the prebuilt nexuss4g kernel
0f51ea4 Initial "build system"
Chris Jones authored
315
d6de929 Add install guide and unlock-bootloader target.
Chris Jones authored
316 .PHONY: unlock-bootloader
17b6d61 Fix inconsistency with INSTALL instructions
Chris Jones authored
317 unlock-bootloader:
d6de929 Add install guide and unlock-bootloader target.
Chris Jones authored
318 @$(call GONK_CMD,adb reboot bootloader && fastboot oem unlock)
319
f44bf47 @jlebar Adding |make kill-b2g| target.
jlebar authored
320 # Kill the b2g process on the device.
321 .PHONY: kill-b2g
322 kill-b2g:
323 adb shell kill `adb shell ps | grep b2g | sed -e 's/ \+/ /g' | cut -f 2 -d ' '`
324
75d0e6e |make sync && make flash| gets code, builds, and flashes attached nexus ...
Chris Jones authored
325 .PHONY: sync
0f51ea4 Initial "build system"
Chris Jones authored
326 sync:
88120af @jlebar Make sync should git pull origin, not git pull.
jlebar authored
327 git pull origin
150b06e @jlebar Do |git pull| before |git submodule sync| in |make sync|.
jlebar authored
328 git submodule sync
329 git submodule update --init
Something went wrong with that request. Please try again.