![NXP Semiconductors ASUG Скачать руководство пользователя страница 2](http://html1.mh-extra.com/html/nxp-semiconductors/asug/asug_user-manual_1721768002.webp)
If you have trouble installing the JDK in Ubuntu, see
How to install misc JDK in Ubuntu for Android build
.
Configure git before use. Set the name and email as follows:
• git config --global user.name "First Last"
• git config --global user.email "[email protected]"
NOTE
2.2 Unpacking the Android release package
After you have set up a computer running Linux OS, unpack the Android release package by using the following commands:
$ cd ~ (or any other directory you like)
$ tar xzvf imx-p9.0.0_2.3.2.tar.gz
3 Building the Android platform for i.MX
3.1 Getting i.MX Android release source code
The i.MX Android release source code consists of three parts:
• NXP i.MX public source code, which is maintained in the
• AOSP Android public source code, which is maintained in
.
• NXP i.MX Android proprietary source code package, which is maintained in www.NXP.com.
Assume you had i.MX Android proprietary source code package imx-p9.0.0_2.3.2.tar.gz under ~/. directory. To generate the i.MX
Android release source code build environment, execute the following commands:
$ mkdir ~/bin
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ export PATH=${PATH}:~/bin
$ source ~/imx-p9.0.0_2.3.2/imx_android_setup.sh
# By default, the imx_android_setup.sh script will create the source code build environemnt in the
folder ~/android_build
# ${MY_ANDROID} will be refered as the i.MX Android source code root directory in all i.MX Andorid
release documentation.
$ export MY_ANDROID=~/android_build
3.2 Building Android images
Building the Android image is performed when the source code has been downloaded (Section 3.1 "
Commands lunch <buildName-buildType> to set up the build configuration and make to start the build process are executed.
The build configuration command lunch can be issued with an argument <Build name>-<Build type> string, such as lunch
evk_8mm-userdebug, or can be issued without the argument, which will present a menu of options to select.
The Build Name is the Android device name found in the directory ${MY_ANDROID}/device/fsl/. The following table lists the i.MX
build names.
Table 1. Build names
Build name
Description
evk_8mn
i.MX 8M Nano EVK Board
Table continues on the next page...
NXP Semiconductors
Building the Android platform for i.MX
Android
™
User's Guide, Rev. P9.0.0_2.3.2, 6 March 2020
User's Guide
2 / 31