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 https://sites.google.com/a/chromium.org/dev/developers/how-tos/-quickly-building
-for-cros-arm-x64 | 7 https://sites.google.com/a/chromium.org/dev/developers/how-tos/-quickly-building
-for-cros-arm-x64 |
8 | 8 |
9 ## Recipe2: Explicit Cross compiling | 9 ## Recipe2: Explicit Cross compiling |
10 | 10 |
11 Due to the lack of ARM hardware with the grunt to build Chromium native, cross | 11 Due to the lack of ARM hardware with the grunt to build Chromium native, cross |
12 compiling is currently the recommended method of building for ARM. | 12 compiling is currently the recommended method of building for ARM. |
13 | 13 |
14 These instruction are designed to run on Ubuntu Precise. | 14 These instruction are designed to run on Ubuntu Precise. |
15 | 15 |
16 ### Installing the toolchain | 16 ### Installing the toolchain |
17 | 17 |
18 The install-build-deps script can be used to install all the compiler | 18 The install-build-deps script can be used to install all the compiler |
19 and library dependencies directly from Ubuntu: | 19 and library dependencies directly from Ubuntu: |
20 | 20 |
21 $ ./build/install-build-deps.sh | 21 $ ./build/install-build-deps.sh |
22 | 22 |
23 ### Installing the sysroot | 23 ### Installing the sysroot |
24 | 24 |
25 A prebuilt sysroot image is kept up-to-date on Cloud Storage. It will | 25 A prebuilt sysroot image is kept up to date on Cloud Storage. It will |
26 automatically be installed by gclient runhooks installed if you have | 26 automatically be installed by gclient runhooks installed if you have |
27 `target_arch=arm` in your `GYP_DEFINES`. | 27 `target_arch=arm` in your `GYP_DEFINES`. |
28 | 28 |
29 To install the sysroot manually you can run: | 29 To install the sysroot manually you can run: |
30 | 30 |
31 ./chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py \ | 31 ./chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py \ |
32 --arch=arm | 32 --arch=arm |
33 | 33 |
34 ### Building | 34 ### Building |
35 | 35 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 Modes "1024x768" "800x600" "640x480" | 95 Modes "1024x768" "800x600" "640x480" |
96 EndSubSection | 96 EndSubSection |
97 EndSection | 97 EndSection |
98 ``` | 98 ``` |
99 | 99 |
100 ### Notes | 100 ### Notes |
101 | 101 |
102 * To building for thumb reduces the stripped release binary by around 9MB, | 102 * To building for thumb reduces the stripped release binary by around 9MB, |
103 equating to ~33% of the binary size. To enable thumb, set `'arm_thumb': 1` | 103 equating to ~33% of the binary size. To enable thumb, set `'arm_thumb': 1` |
104 * TCmalloc does not have an ARM port, so it is disabled. | 104 * TCmalloc does not have an ARM port, so it is disabled. |
OLD | NEW |