• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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   ```
7   ./build.sh --product-name name --ccache
8   ```
9
10   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
11   >
12> In the preceding command, *name* indicates the product name, for example, **Hi3516DV300** and **rk3568**.
13
142. Check the build result. If the build is successful, the following information is displayed in the log:
15
16   ```
17   post_process
18   =====build name successful.
19   ```
20
21   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.
22   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
23   >
24   > For details about other modular compilation operations, see [Compilation and Building Guide](../subsystems/subsys-build-all.md).
25