Reference
Using the build.sh Script to Build Source Code
-
Go to the root directory of the source code and run the build command.
./build.sh --product-name name --ccache
NOTE name indicates the product name, for example, hispark_taurus_standard and rk3568.
-
Check the build result. After the build is complete, the following information is displayed in the log:
post_process =====build name successful.
Files generated during the build are stored in the out/{device_name}/ directory, and the generated image is stored in the out/{device_name}/packages/phone/images/ directory.
NOTE
For details about other modular compilation operations, see Building a Standard System.
Configuring the Proxy
Setting Up the Python Proxy
-
Create a proxy configuration file.
mkdir ~/.pipvim ~/.pip/pip.conf
-
Add the following proxy information to the file, save the file, and exit:
[global] index-url = http:// Proxy URL trusted-host = Trusted image path timeout = 120
Setting Up the npm Proxy
-
Create a proxy configuration file.
vim ~/.npmrc
-
Add the following proxy information to the file, save the file, and exit:
Registry=http:// Proxy URL strict-ssl=false
-
Add the following content to the .bashrc file, save the file, and exit:
export NPM_REGISTRY=http:// Proxy URL source .bashrc