45
THE OFFICIAL ORANGE PI USER'S GUIDE
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