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
Copy file name to clipboardExpand all lines: README.md
+2-82Lines changed: 2 additions & 82 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,7 @@
2
2
3
3
Resources to allow cross compiling WebKit2GTK+ for ARM.
4
4
5
-
Two methods:
6
-
* Using a local chroot (debootstrap + schroot): harder to setup, faster builds
7
-
* Using a Virtual Machine (using Vagrant): easier to setup, way slower builds
8
-
9
-
## Using a chroot (debootstrap + schroot)
10
-
11
-
This method is harder to setup than the one based on VMs, but build times are MUCH faster, so I'm describing it first.
12
-
13
-
As reference, I could cross compile WebKit2GTK+ 2.14.0 from scratch using a chroot in my desktop PC (12 Xeon cores at 3.54 GHz, 16GB DDR4 RAM, fast SSD) in less than 1 hour, while the VM-based method in the same machine (sharing only 8 cores and 12GB of RAM, though) I could only build ~15% in about 2h. So yes, the chroot method seems to be about 12x faster under those circumstances, which is why I'd recommend it instead of the easier method.
14
-
15
-
### Requirements
5
+
## Requirements
16
6
17
7
To do that, you have a different set of requirements:
18
8
@@ -23,7 +13,7 @@ To do that, you have a different set of requirements:
(2) Now you edit `Vagrantfile` and provide the correct paths pointing to your WebKit checkout and the target RootFS
124
-
125
-
(3) Finally you initialize, provision and run the virtual machine:
126
-
```
127
-
$ vagrant up --provider=virtualbox # Will take some time the first time
128
-
$ vagrant ssh # Logs in into the Virtual Machine
129
-
```
130
-
131
-
(4) You'll be inside the VM with access to your WebKit checkout under `/home/vagrant/WebKitARM` and to the CMake Toolchain file under `/home/vagrant/armv7l-toolchain.cmake`, assuming that you have adjusted the paths in step 2.
132
-
133
-
(5) Create a BUILD directory in `/home/vagrant/WebKitARM`:
134
-
```
135
-
$ mkdir WebKitARM/BUILD && cd WebKitARM/BUILD
136
-
```
137
-
138
-
(6) Configure the build, passing any extra parameter you need. For instance:
0 commit comments