Building Android Source Code

Preperations

Building

Note: Before you start to build, make sure you have done all the Preperations listed above.

Build U-Boot:

$ cd ~/project/khadas/mmallow/uboot
$ make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu-

Gernerated images in this step:

Build Android:

$ cd ~/project/khadas/mmallow
$ source build/envsetup.sh
$ lunch <target>
$ make -jN otapackage

Note:

Gernerated images in this step:

Build Linux kernel:

When you build Android aboved, will build Linux kernel at the same time.

In some case, you might want to build Linux kernel separately, you can run the script below to do that:

$ source device/khadas/kvim/mkern.sh

See Also