Install JDK
- $ sudo apt-get install openjdk-8-jdk
Installing packages
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip device-tree-compiler
$ sudo apt-get install dosfstools e2fsprogs parted
Installing Repo
$ mkdir -p ~/bin
$ PATH=~/bin:$PATH
#$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ curl https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/bin/repo
$ chmod a+x ~/bin/repo
Initializing a Repo client
- Create an empty directory to hold your working files:
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
- Configure git with your real name and email address:
$ git config --global user.name "Your Name"
$ git config --global user.email "you@example.com"
- Initialize repo client with URL for the manifest and branch specified:
repo init -u https://github.com/MentorEmbedded/mpsoc-manifest.git -b zynqmp-android_8 -m release_android-8_xilinx-v2019.2.xml
- Pull down the source tree:
$ repo sync -c -q --no-tags --no-clone-bundle -j8
Build the code
-
Set up build environment:
$ source build/envsetup.sh
-
Choose a target:
$ lunch ultrazed_eg_iocc-eng
-
The following lunch targets are supported:
Target Description zcu102-eng Development configuration of Android for Xilinx ZCU102 zcu102-userdebug Production version of Android for Xilinx ZCU102 board with root access and debuggability ultrazed_eg_iocc-eng Development configuration of Android for Avnet UltraZed-EG SoM with IO Carrier Card ultrazed_eg_iocc-userdebug Production version of Android for Avnet UltraZed-EG SoM with IO Carrier Card with root access and debuggability zcu106-eng Development configuration of Android for Xilinx ZCU106 zcu106-userdebug Production version of Android for Xilinx ZCU106 board with root access and debuggability -
Build the code:
$ make -j8
Referrence
https://github.com/MentorEmbedded/mpsoc-manifest/tree/zynqmp-android_8