NXP Semiconductors
UM11558
Getting Started with NXP-based Wireless Modules on i.MX 8M Quad EVK Running Android 10 OS
4.4 Building Android 10 image
The Android 10 image can be built after the source code has been downloaded. i.MX
Android platform needs some preparation when building the image for the first time. The
preparation steps are described hereafter.
• Step 1
: Set up the self-installed GCC cross-compile tool chain
Download the tool chain for the A-profile architecture from
page. We recommended to use version
8.3
for this release and the
package is
gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz
.
Run the command to untar the file and provide the path on the local disk, for example
/
opt/
.
ubuntu@ubuntu-desktop:/# sudo tar -xf gcc-arm-8.3-2019.03-x86_64-
aarch64-linux-gnu.tar.xz -C /opt/
Export the variable named
AARCH64_GCC_CROSS_COMPILE
to point to the tool.
ubuntu@ubuntu-desktop:/# export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-
arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-
• Step 2
: Change to the top-level build directory:
ubuntu@ubuntu-desktop:/# cd ${MY_ANDROID}
• Step 3
: Set up the environment for building. This only configures the current terminal:
ubuntu@ubuntu-desktop:/# source build/envsetup.sh
• Step 4
: Execute Android
lunch
command with the platform name and
userdebug
type:
ubuntu@ubuntu-desktop:/# lunch evk_8mq-userdebug
Note:
The
lunch
command can be executed with the argument
ProductName-
BuildMode
such as
lunch evk_8mq-userdebug
. It can also be issued without the
argument, in which case a menu will suggest to choose a target.
• Step 5
: Execute the
imx-make.sh
script to generate the Android 10 image:
ubuntu@ubuntu-desktop:/# ./imx-make.sh -j4 2>&1 | tee build-log.txt
The following log confirms that the build was successful:
#### build completed successfully (04:25:02 (hh:mm:ss)) ####
UM11558
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2021. All rights reserved.
User manual
Rev. 1 — 29 January 2021
32 / 78