Ready for review
Android 11 for Trizeps8 Mini
Note This Software is in Beta State !!!!
Please report if builds do not succeed !!!
Preparation:
# prepare linux build environment (ubuntu-18.04)
sudo apt-get install uuid uuid-dev zlib1g-dev liblz-dev liblzo2-2 liblzo2-dev lzop git-core curl u-boot-tools mtd-utils \
android-tools-fsutils device-tree-compiler gdisk m4 libz-dev bison flex libssl-dev gcc-multilib
# Configure git before use. Set the name and email as follows:
$ git config --global user.name "First Last"
$ git config --global user.email "first.last@company.com"
# Unpacking the Android release package:
$ git clone ssh://git@gitlab.keith-koep.com:30001/imx/android-11.git -b imx-android-11-kuk“
# now sync repos to setup Android AOSP devicetree
# By default, the imx_android_setup.sh script will create the source code build environment in the folder `pwd`/android_build
# ${MY_ANDROID} will be refered as the i.MX Android source code root directory in all i.MX Android release documentation.
$ export MY_ANDROID=`pwd`
$ source ./android-11/imx_android_setup.sh
# Prepare C-Compiler from ARM developers site: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads
# Decompress the file into a path on local disk, for example, to "/opt/". Export a variable named "AARCH64_GCC_CROSS_COMPILE" to point to the tool as follows:
# if "gcc-arm-8.3-2019.03-x86_64-aarch64-elf.tar.xz" is used
$ sudo tar -xvJf gcc-arm-8.3-2019.03-x86_64-aarch64-elf.tar.xz -C /opt
$ export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-arm-8.3-2019.03-x86_64-aarch64-elf/bin/aarch64-
elf-
# if "gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz" is used
$ sudo tar -xvJf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz -C /opt
$ export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-arm-8.3-2019.03-x86_64-aarch64-linuxgnu/
bin/aarch64-linux-gnu-
Add the export AARCH64_GCC_CROSS_COMPILE=.... to your ~/.bashrc or to your computer default profile
# Build:
$ cd ${MY_ANDROID}
$ source build/envsetup
$ lunch trizeps8mini-userdebug
# Select your board's default devicetree in device/nxp/imx8m/trizeps8mini/Boardconfig.mk
$ ln -s device/nxp/common/tools/imx-make.sh imx-make.sh
$ ./imx-make.sh -j4 2>&1 | tee build-log.txt
# Now drink **multiple** cups of coffee ;-)