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 Android kernel:

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

To configure for Android kernel:

$ make -C common ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- O=../out/target/product/kvim/obj/KERNEL_OBJ/ menuconfig

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

$ source device/khadas/kvim/mkern.sh

See Also