quickstart-standard-running-rk3568-build.md 1.3 KB
Newer Older
E
ester.zhou 已提交
1 2 3 4 5 6 7 8 9 10
# Building


You can build source code with hb or the **build.sh** script. This section exemplifies how to build source code with hb. For details about how to build with the **build.sh** script, see [Building Source Code Using the build.sh Script](../quick-start/quickstart-standard-reference.md).


Go to the root directory of the source code in the Ubuntu environment and perform the following steps:


1. Set the build path.
E
ester.zhou 已提交
11
   
E
ester.zhou 已提交
12 13 14 15 16
   ```
   hb set
   ```

2. Select the current path.
E
ester.zhou 已提交
17
   
E
ester.zhou 已提交
18 19 20 21
   ```
   .
   ```

E
ester.zhou 已提交
22
3. Select **rk3568** under **hihope** and press **Enter**.
E
ester.zhou 已提交
23 24 25 26 27 28 29 30 31 32 33 34

4. Start building.

   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
   > - To build a component (for example, **hello**), run the **hb build -T _ Target name _** command.
   > 
   > - To build a product incrementally, run the **hb build** command.
   > 
   > - To build a product from the scratch, run the **hb build -f** command.
   > 
   > This example builds a product from the scratch.

E
ester.zhou 已提交
35
   
E
ester.zhou 已提交
36 37 38 39
   ```
   hb build -f
   ```

E
ester.zhou 已提交
40
   
E
ester.zhou 已提交
41 42 43 44 45 46 47 48
     **Figure 1** RK3568 build settings

     ![en-us_image_0000001226922302](figures/en-us_image_0000001226922302.png)

5. Check the build result. If "rk3568 build success" is displayed, the building is successful.

   > ![icon-notice.gif](public_sys-resources/icon-notice.gif) **NOTICE**
   > The build result and log files are stored in **out/rk3568**.