Building Source Code Using the build.sh Script
-
Go to the root directory of the source code and run the build command.
For x86 systems:
./build.sh --product-name {product_name} --ccacheFor Arm systems:
./build.sh --product-name {product_name} --ccache --target-cpu arm64
NOTEIn the preceding command, product-name indicates the product name, for example, Hi3516DV300 and rk3568.
-
Check the build result. If the build is successful, 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.
NOTEFor details about other modular compilation operations, see Compilation and Building Guide.