NXP Semiconductors
UM11558
Getting Started with NXP-based Wireless Modules on i.MX 8M Quad EVK Running Android 10 OS
4.2.4 Creating Android 10 build environment for i.MX
Assuming that you stored i.MX Android proprietary source code package
imx-
android-10.0.0_2.6.0.tar.gz
in
~/.
directory, run the following command to generate the
i.MX Android 10 build environment.
ubuntu@ubuntu-desktop:/# source ~/imx-android-10.0.0_2.6.0/
imx_android_setup.sh
Look for the following command output:
repo sync has finished successfully.
Android source is ready for the build
By default, the
imx_android_setup.sh
script creates the source code build environment
in
`pwd`/android_build
repository.
${MY_ANDROID}
is the variable used for i.MX Android
source code root directory in all i.MX Android release documentation.
ubuntu@ubuntu-desktop:/# export MY_ANDROID=`pwd`/android_build
Note:
In imx_android_setup.sh script, the .xml file which contains the code repository
information is specified. The code repository revision is specified with the release tag
in this file. The release tag should not be moved when the code is externally released,
so that when the imx_android_setup.sh is executed, the working area of the code
repositories synchronized by this script are the same. If i.MX Android team has critical
fixes on the released code, another .xml file is created to help the users synchronize the
code. The users then need to modify the imx_android_setup.sh. For this release, make
the following changes to the script.
diff --git a/imx_android_setup.sh b/imx_android_setup.sh
index 237c98b..9cdb0c6 100644
--- a/imx_android_setup.sh
+++ b/imx_android_setup.sh
@@ -24,7 +24,7 @@ fi
mkdir -p "$android_builddir"
cd "$android_builddir"
-repo init -u https://source.codeaurora.org/external/imx/imx-
manifest.git -b
imx-android-10 -m imx-android-10.0.0_2.6.0.xml --repo-branch=v2.4.1
+repo init -u https://source.codeaurora.org/external/imx/imx-
manifest.git -b
imx-android-10 -m rel-android-10.0.0_2.6.0.xml --repo-branch=v2.4.1
rc=$?
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
28 / 78