This repository has been archived by the owner. It is now read-only.
Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (39 sloc) 1.45 KB

Building Android Source Code

Preperations:

Building

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

Build U-Boot:

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

Gernerated images:

  • fip/u-boot.bin: for onboard EMMC storage booting
  • fip/u-boot.bin.sd.bin: for external TF card booting

Build Android:

$ cd ~/project/vim/mmallow
$ source build/envsetup.sh
$ lunch kvim-user-32
$ make -jN otapackage

Notice:

  • Replace 'N' as the number you want when you run 'make -jN'
  • Use 'userdebug' instead if build android with debug mode:
     $ lunch kvim-userdebug-32
    

Gernerated images:

  • out/target/product/kvim/update.img

Build Linux kernel:

If you wanna build linux kernel separately, run:

$ source device/khadas/kvim/mkern.sh

See Also: