KaiOS: Difference between revisions

Jump to navigation Jump to search
3,093 bytes removed ,  28 August 2020
Updated the build instructions & mozconfig
(Added the current instructions for a local build)
(Updated the build instructions & mozconfig)
Line 11: Line 11:
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 mobile</pre>
<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 <code>.mozbuild</code> directory
Download the b2g sysroot using <code>mach</code>:
<pre>
<pre>
wget https://firefoxci.taskcluster-artifacts.net/SqAWos4HSqSIZjNnf_yRxQ/0/public/build/b2g-sysroot.tar.zst
./mach artifact toolchain --from-build toolchain-linux64-b2g-sysroot
tar -C "$HOME/.mozbuild" -x -a -f b2g-sysroot.tar.zst
</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
Line 82: Line 81:
ac_add_options --with-wificond-so="$HOME/.mozbuild/b2g-sysroot/out/target/product/generic_x86_64/system/lib64/libwificond_ipc_shared.so"
ac_add_options --with-wificond-so="$HOME/.mozbuild/b2g-sysroot/out/target/product/generic_x86_64/system/lib64/libwificond_ipc_shared.so"


export CFLAGS="-DANDROID -DTARGET_OS_GONK \
export CFLAGS="-Wno-nullability-completeness"
 
export CPPFLAGS="-DANDROID -DTARGET_OS_GONK \
-DJE_FORCE_SYNC_COMPARE_AND_SWAP_4=1 \
-DJE_FORCE_SYNC_COMPARE_AND_SWAP_4=1 \
-D_USING_LIBCXX \
-D_USING_LIBCXX \
-Wno-nullability-completeness \
-DGR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1 \
-DGR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1 \
-isystem $HOME/.mozbuild/b2g-sysroot/bionic \
-isystem $ANDROID_NDK/platforms/$ANDROID_PLATFORM/$ARCH_DIR/usr/include"
-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 \
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 \
Confirmed users
429

edits

Navigation menu