For build android BSP you can follow the user guide we supply,
To build the Android source files, use a computer running the Linux OS. The Ubuntu 18.04 64-bit version is the most tested
environment for the Android 11.0 build.
To synchronize the code and build images of this release, the computer should at least have:
• 450 GB free disk space
• 16 GB RAM
In addition to the packages requested on the Android website, the following packages are also needed in our user guide.