1# Building Source Code Using the build.sh Script 2 3 41. Go to the root directory of the source code and run the build command. 5 6 > For x86 systems: 7 8 ``` 9 ./build.sh --product-name {product_name} --ccache 10 ``` 11 12 > For Arm systems: 13 14 ``` 15 ./build.sh --product-name {product_name} --ccache --target-cpu arm64 16 ``` 17 18 >  **NOTE** 19 > 20 > In the preceding command, *product-name* indicates the product name, for example, **Hi3516DV300** and **rk3568**. 21 222. Check the build result. If the build is successful, the following information is displayed in the log: 23 24 ``` 25 post_process 26 =====build name successful. 27 ``` 28 29 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. 30 >  **NOTE** 31 > 32 > For details about other modular compilation operations, see [Compilation and Building Guide](../subsystems/subsys-build-all.md). 33