summaryrefslogtreecommitdiff
path: root/android/images/armv8-android-fvp-lsk/HOWTO_getsourceandbuild.txt
blob: 4e353c4ac98d81c0c130baa45cd6e478d392f1d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
h2. How to download and build Android sources

Recommended method to do a linaro android build is to use linaro android build script(linaro_android_build_cmds.sh). You can download this script from the Downloads section of the build page. Use this script to do a complete ARMv8 Android build for FVP models from scratch. If you prefer to do it manuaaly then follow the "Get the source" and "Build" instructions below.

h3. Get the source
<pre>
  $ sudo add-apt-repository ppa:linaro-maintainers/tools
  $ sudo apt-get update
  $ sudo apt-get install gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc openjdk-7-jdk openjdk-7-jre vim-common python-parted python-yaml wget uuid-dev
  $ curl "https://android.git.linaro.org/gitweb?p=tools/repo.git;a=blob_plain;f=repo;hb=refs/heads/stable" > repo
  $ chmod +x repo
  $ ./repo init -u git://android.git.linaro.org/platform/manifest.git -b linaro-android-15.03-release -m armv8-android-fvp-lsk.xml
  $ ./repo sync # this may take some time
</pre>

h3. Build
<pre>
  $ export CPUS=`grep -c processor /proc/cpuinfo`
  $ export TARGET_PRODUCT=vexpress
  $ export TARGET_BUILD_VARIANT=eng
  $ export USE_LINARO_TOOLCHAIN=true
  $ . build/envsetup.sh
  $ make -j${CPUS} boottarball systemtarball userdatatarball
</pre>

h2. Running the build on FVP models

Follow "Binary Image Installation" tab for instructions.