Changes

Jump to: navigation, search

KaiOS

3,093 bytes removed, 17:19, 28 August 2020
Updated the build instructions & mozconfig
Bootstrap your build environment via mach
<pre>export LOCAL_NDK_BASE_URL='ftp://ftp.kaiostech.com/ndk/android-ndk' ./mach bootstrap --application-choice mobile</pre>
Download the b2g sysroot and unpack it under your using <code>.mozbuildmach</code> directory:
<pre>
wget https://firefoxci.taskcluster-artifacts.net/SqAWos4HSqSIZjNnf_yRxQ/0/public/build/b2gmach artifact toolchain -sysroot.tar.zsttar -C "$HOME/.mozbuild" from-x build toolchain-a linux64-f b2g-sysroot.tar.zst
</pre>
Add a suitable mozconfig file, you can use the following one for the time being
ac_add_options --with-wificond-so="$HOME/.mozbuild/b2g-sysroot/out/target/product/generic_x86_64/system/lib64/libwificond_ipc_shared.so"
export CFLAGS="-Wno-nullability-completeness" export CPPFLAGS="-DANDROID -DTARGET_OS_GONK \
-DJE_FORCE_SYNC_COMPARE_AND_SWAP_4=1 \
-D_USING_LIBCXX \
-Wno-nullability-completeness \
-DGR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1 \
-isystem $HOME/.mozbuild/b2g-sysroot/bionic \-isystem $HOME/.mozbuild/b2g-sysroot/bionic/libc/$ARCH_DIR/include \-isystem $ANDROID_NDK/platforms/$ANDROID_PLATFORM/$ARCH_DIR/usr/include \-isystem $HOME/.mozbuild/b2g-sysroot/bionic/libc/include/ \-isystem $HOME/.mozbuild/b2g-sysroot/bionic/libc/kernel/common \-isystem $HOME/.mozbuild/b2g-sysroot/bionic/libc/kernel/$ARCH_DIR \-isystem $HOME/.mozbuild/b2g-sysroot/bionic/libc/kernel/uapi/ \-isystem $HOME/.mozbuild/b2g-sysroot/bionic/libc/kernel/uapi/asm-$ARCH_NAME/ \-isystem $HOME/.mozbuild/b2g-sysroot/bionic/libm/include \-I$HOME/.mozbuild/b2g-sysroot/frameworks/av/include \-I$HOME/.mozbuild/b2g-sysroot/frameworks/native/headers/media_plugin \-I$HOME/.mozbuild/b2g-sysroot/frameworks/native/include \-I$HOME/.mozbuild/b2g-sysroot/frameworks/native/include/android \-I$HOME/.mozbuild/b2g-sysroot/frameworks/native/libs/binder/include \-I$HOME/.mozbuild/b2g-sysroot/frameworks/native/libs/gui/include \-I$HOME/.mozbuild/b2g-sysroot/frameworks/native/libs/nativewindow/include \-I$HOME/.mozbuild/b2g-sysroot/frameworks/native/libs/nativebase/include \-I$HOME/.mozbuild/b2g-sysroot/frameworks/native/libs/nativebase \-I$HOME/.mozbuild/b2g-sysroot/frameworks/native/libs/ui/include \-I$HOME/.mozbuild/b2g-sysroot/system \-I$(pwd)/modules/freetype2/include \-I$HOME/.mozbuild/b2g-sysroot/system/core/include \-I$HOME/.mozbuild/b2g-sysroot/system/core/base/include \-I$HOME/.mozbuild/b2g-sysroot/hardware/libhardware/include/ \-I$HOME/.mozbuild/b2g-sysroot/system/libhidl/base/include \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/system/libhidl/transport/base/1.0/android.hidl.base@1.0_genc++_headers/gen \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/system/libhidl/transport/manager/1.0/android.hidl.manager@1.0_genc++_headers/gen \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/hardware/interfaces/gnss/1.0/android.hardware.gnss@1.0_genc++_headers/gen \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/hardware/interfaces/gnss/1.1/android.hardware.gnss@1.1_genc++_headers/gen \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/hardware/interfaces/gnss/2.0/android.hardware.gnss@2.0_genc++_headers/gen \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/hardware/interfaces/gnss/measurement_corrections/1.0/android.hardware.gnss.measurement_corrections@1.0_genc++_headers/gen \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/hardware/interfaces/gnss/visibility_control/1.0/android.hardware.gnss.visibility_control@1.0_genc++_headers/gen \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0_genc++_headers/gen/ \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/hardware/interfaces/radio/1.1/android.hardware.radio@1.1_genc++_headers/gen/ \-I$HOME/.mozbuild/b2g-sysroot/out/soong/.intermediates/hardware/interfaces/vibrator/1.0/android.hardware.vibrator@1.0_genc++_headers/gen" export CPPFLAGS="-isystem $HOME/.mozbuild/b2g-sysroot/api/cpp/include \$CFLAGS"
export LDFLAGS="-L$HOME/.mozbuild/b2g-sysroot/out/target/product/generic_x86_64/system/lib64 -Wl,-rpath-link=$HOME/.mozbuild/b2g-sysroot/out/target/product/generic_x86_64/obj/lib64 \
Confirm
384
edits

Navigation menu