#
2) Then start compiling
test@test:~/longan$ ./build.sh
3) The output after compilation is as follows
sun50iw9p1 compile Kernel successful
INFO: build kernel OK.
INFO: build rootfs ...
INFO: skip make rootfs for android
INFO: ----------------------------------------
INFO: build lichee OK.
INFO: ----------------------------------------
6.3.2. Compile android source code
1) The command to compile android is as follows
test@test:~$ cd android
test@test:~/android$ source build/envsetup.sh
test@test:~/android$ lunch cupid_p2-eng
test@test:~/android$ extract-bsp
test@test:~/android$ make -j8
2) After compiling, the following information will be printed
#### build completed successfully (01:51 (mm:ss)) ####
3) Then use the pack command to package and generate the android image
test@test:~/android$ pack
......
----------image is at----------
longan/out/h616_android10_p2_uart0.img
pack finish
use pack4dist for release
4) The storage path of the generated Android image is
longan/out/h616_android10_p2_uart0.img