Confirmed users
429
edits
(Added instructions on how to add stuff to the sysroot) |
(Updated the build instructions to reflect the native b2g bootstrap and modified the default mozconfig file) |
||
| Line 10: | Line 10: | ||
<pre>hg clone https://hg.mozilla.org/projects/kaios</pre> | <pre>hg clone https://hg.mozilla.org/projects/kaios</pre> | ||
Bootstrap your build environment via mach | Bootstrap your build environment via mach | ||
<pre>export LOCAL_NDK_BASE_URL='ftp://ftp.kaiostech.com/ndk/android-ndk' ./mach bootstrap --application-choice=' | <pre>export LOCAL_NDK_BASE_URL='ftp://ftp.kaiostech.com/ndk/android-ndk' ./mach bootstrap --application-choice='Boot2Gecko'</pre> | ||
</pre> | |||
Add a suitable mozconfig file, you can use the following one for the time being | Add a suitable mozconfig file, you can use the following one for the time being | ||
<pre> | <pre> | ||
| Line 26: | Line 20: | ||
ac_add_options --with-android-version=29 | ac_add_options --with-android-version=29 | ||
ac_add_options --target=x86_64-linux-android | ac_add_options --target=x86_64-linux-android | ||
# Compiler options | # Compiler options | ||
ac_add_options --with-android-ndk="$HOME/.mozbuild/android-ndk-r20b-canary" | ac_add_options --with-android-ndk="$HOME/.mozbuild/android-ndk-r20b-canary" | ||
# B2G-specific options | # B2G-specific options | ||
| Line 44: | Line 31: | ||
ac_add_options --enable-b2g-fm | ac_add_options --enable-b2g-fm | ||
ac_add_options --enable-forkserver | ac_add_options --enable-forkserver | ||
# Only for x86-64 | # Only for x86-64 | ||
ac_add_options --enable-wasm-simd | ac_add_options --enable-wasm-simd | ||
# | # Sandbox & profiler are not supported yet | ||
ac_add_options --disable-profiling | |||
ac_add_options --disable-sandbox | ac_add_options --disable-sandbox | ||
| Line 59: | Line 44: | ||
ac_add_options --enable-linker=lld | ac_add_options --enable-linker=lld | ||
ac_add_options --disable-elf-hack | ac_add_options --disable-elf-hack | ||
</pre> | </pre> | ||
Build as usual with <code>./mach build</code> | Build as usual with <code>./mach build</code> | ||
| Line 83: | Line 58: | ||
<pre>export LOCAL_NDK_BASE_URL='ftp://ftp.kaiostech.com/ndk/android-ndk'</pre> | <pre>export LOCAL_NDK_BASE_URL='ftp://ftp.kaiostech.com/ndk/android-ndk'</pre> | ||
Install Gecko dependencies | Install Gecko dependencies | ||
<pre>cd gecko && ./mach bootstrap --application-choice | <pre>cd gecko && ./mach bootstrap --application-choice Boot2Gecko</pre> | ||
Build by invoking the <code>build.sh</code> script in the top-level directory. Depending on your machine this step can take anywhere from 30 minutes to several hours | Build by invoking the <code>build.sh</code> script in the top-level directory. Depending on your machine this step can take anywhere from 30 minutes to several hours | ||
<pre>./build.sh</pre> | <pre>./build.sh</pre> | ||