OLD | NEW |
1 # Linux Chromium Arm Recipes | 1 # Linux Chromium Arm Recipes |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 ## Recipe1: Building for an ARM CrOS device | 5 ## Recipe1: Building for an ARM CrOS device |
6 | 6 |
7 This recipe uses `ninja` (instead of `make`) so its startup time is much lower | 7 This recipe uses `ninja` (instead of `make`) so its startup time is much lower |
8 (sub-1s, instead of tens of seconds), is integrated with goma (for | 8 (sub-1s, instead of tens of seconds), is integrated with goma (for |
9 google-internal users) for very high parallelism, and uses `sshfs` instead of | 9 google-internal users) for very high parallelism, and uses `sshfs` instead of |
10 `scp` to significantly speed up the compile-run cycle. It has moved to | 10 `scp` to significantly speed up the compile-run cycle. It has moved to |
11 https://sites.google.com/a/chromium.org/dev/developers/how-tos/-quickly-building
-for-cros-arm-x64 | 11 https://sites.google.com/a/chromium.org/dev/developers/how-tos/-quickly-building
-for-cros-arm-x64 |
12 (mostly b/c of the ease of attaching files to sites). | 12 (mostly b/c of the ease of attaching files to sites). |
13 | 13 |
14 | 14 |
15 ## Recipe2: Explicit Cross compiling | 15 ## Recipe2: Explicit Cross compiling |
16 | 16 |
17 Due to the lack of ARM hardware with the grunt to build Chromium native, cross | 17 Due to the lack of ARM hardware with the grunt to build Chromium native, cross |
18 compiling is currently the recommended method of building for ARM. | 18 compiling is currently the recommended method of building for ARM. |
19 | 19 |
20 These instruction are designed to run on Ubuntu Precise. | 20 These instruction are designed to run on Ubuntu Precise. |
21 | 21 |
22 ### Installing the toolchain | 22 ### Installing the toolchain |
23 | 23 |
24 The install-build-deps script can be used to install all the compiler | 24 The install-build-deps script can be used to install all the compiler |
25 and library dependencies directly from Ubuntu: | 25 and library dependencies directly from Ubuntu: |
26 | 26 |
27 $ ./build/install-build-deps.sh | 27 $ ./build/install-build-deps.sh |
28 | 28 |
29 ### Installing the rootfs | 29 ### Installing the sysroot |
30 | 30 |
31 A prebuilt rootfs image is kept up-to-date on Cloud Storage. It will | 31 A prebuilt sysroot image is kept up-to-date on Cloud Storage. It will |
32 automatically be installed by gclient runhooks installed if you have | 32 automatically be installed by gclient runhooks installed if you have |
33 `target_arch=arm` in your `GYP_DEFINES`. | 33 `target_arch=arm` in your `GYP_DEFINES`. |
34 | 34 |
35 To install the sysroot manually you can run: | 35 To install the sysroot manually you can run: |
36 | 36 |
37 ./chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py \ | 37 ./chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py \ |
38 --arch=arm | 38 --arch=arm |
39 | 39 |
40 ### Building | 40 ### Building |
41 | 41 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 Modes "1024x768" "800x600" "640x480" | 105 Modes "1024x768" "800x600" "640x480" |
106 EndSubSection | 106 EndSubSection |
107 EndSection | 107 EndSection |
108 ``` | 108 ``` |
109 | 109 |
110 ### Notes | 110 ### Notes |
111 | 111 |
112 * To building for thumb reduces the stripped release binary by around 9MB, | 112 * To building for thumb reduces the stripped release binary by around 9MB, |
113 equating to ~33% of the binary size. To enable thumb, set `'arm_thumb': 1` | 113 equating to ~33% of the binary size. To enable thumb, set `'arm_thumb': 1` |
114 * TCmalloc does not have an ARM port, so it is disabled. | 114 * TCmalloc does not have an ARM port, so it is disabled. |
OLD | NEW |