documentation/Reference-Platform/RPTest/ConsumerEdition/HiKey/BFSAOSPRPB-16.03.md
2016-06-20 16:36:07 -07:00

1.5 KiB

AOSP RPB 16.03 - Build from Source

Additional AOSP repositories are hosted here:

Build setup:

Please setup the host machine by following the instructions here: http://source.android.com/source/initializing.html

Out of date:

NOTE: The build tries to mount a loop device as fat partition to create the boot-fat.uefi.img filesystem image. Please make sure your user is allowed to run those commands in sudo without password by running "visudo" and appending the following lines (replacing "" with your username):

<USER> ALL= NOPASSWD: /bin/mount
<USER> ALL= NOPASSWD: /bin/umount
<USER> ALL= NOPASSWD: /sbin/mkfs.fat
<USER> ALL= NOPASSWD: /bin/cp

Download the code:

mkdir android/
cd android/

Download and extract the Mali vendor binaries in the above directory: 20150706/vendor.tar.bz2

Build the image:

repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r16 -g "default,-device,-non-default,hikey"
cd .repo/
git clone https://github.com/96boards/android_manifest -b android-6.0 local_manifests
cd -
repo sync -j8
source build/envsetup.sh
lunch hikey-userdebug
make droidcore -j8
cd out/target/product/hiked