RequirementsPlease refer to AOSP website and follow all the instruction mentioned there. Read and prepare carefully through the link, http://source.android.com/source/requirements.html .
Pay attention to the following key points:
GUN/Linux distribution selecting: We strongly recommend you install Ubuntu 14.04 (Trusty) to build the environment;
Java Development Kit (JDK): OpenJDK 7 for Android 6.0 (Marshmallow) on Ubuntu;
Device binaries: MediaTek X20 SLA source part including the device binaries;
Establishing a Build Environment
Refer to AOSP website ( http://source.android.com/source/initializing.html ) and follow the below key points:
The Android build is routinely tested in house on recent versions of Ubuntu LTS (14.04)
Installing the JDK 7
Installing required packages
Using a separate output directory
Downloading the Source
Refer to AOSP website ( http://source.android.com/source/downloading.html ) and follow the below key points:
Downloading the AOSP
Downloading Linux Kernel
Downloading MediaTek SLA
Merge the Source
Build the Android Source
Refer to AOSP website ( http://source.android.com/source/building.html ) and follow the below key points:
Set up environment
Choose a target
Build the code
Build everything with make. GNU make can handle parallel tasks with a -jN argument, and it's common to use a number of tasks N that's between 1 and 2 times the number of hardware threads on the computer being used for the build. For example, on a dual-E5520 machine (2 CPUs, 4 cores per CPU, 2 threads per core), the fastest builds are made with commands between make -j16 and make -j32.
or make one by one manually
Note that, the Android OS for x20 96Boards is open source, but excluding HAL part, and the preloader part.
So, there is no need to execute "$ make pl -j8".
Images in the out directory
Follow up with next blog to know how to install android on the board