android.tar.gzah: OK
android.tar.gzai: OK
android.tar.gzaj: OK
android.tar.gzak: OK
test@test:~$ md5sum -c longan.tar.gz.md5sum
longan.tar.gz: OK
3) Then unzip the android source code
a. android: store android-related source code
b. longan: store the source code of the linux kernel and u-boot (not including the
source code of boot0), and other configuration files
test@test:~$ cat android.tar.gza* | tar -zx
test@test:~$ tar -zxf longan.tar.gz
test@test:~$ ls
android longan
6.2. Build android compilation environment
1) Install JDK
test@test:~$ sudo add-apt-repository ppa:openjdk-r/ppa
test@test:~$ sudo apt-get update
test@test:~$ sudo apt-get install openjdk-8-jdk
2) Configure JAVA environment variables
a. First determine the installation path of java, generally
test@test:~$ ls /usr/lib/jvm/java-8-openjdk-amd64
ASSEMBLY_EXCEPTION bin docs include jre lib man src.zip
THIRD_PARTY_README
b. Then use the following command to export java environment variables
test@test:~$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
test@test:~$ export PATH=$JAVA_HOME/bin:$PATH
test@test:~$ export
CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
3) Use Ubuntu 14.04 to compile the source code of android 10, you need to ensure
that Ubuntu 14.04 uses the linux 4.4 kernel, otherwise an error will be reported when
compiling, if the kernel is not linux 4.4, please upgrade the kernel
test@test:~$ uname -a
Linux ubuntu 4.4.0-142-generic #168~14.04.1-Ubuntu SMP Sat Jan 19 11:26:28
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
4) Install platform support software