How to checkout android code of Xilinx

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:

    TargetDescription
    zcu102-engDevelopment configuration of Android for Xilinx ZCU102
    zcu102-userdebugProduction version of Android for Xilinx ZCU102 board with root access and debuggability
    ultrazed_eg_iocc-engDevelopment configuration of Android for Avnet UltraZed-EG SoM with IO Carrier Card
    ultrazed_eg_iocc-userdebugProduction version of Android for Avnet UltraZed-EG SoM with IO Carrier Card with root access and debuggability
    zcu106-engDevelopment configuration of Android for Xilinx ZCU106
    zcu106-userdebugProduction 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值