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