未验证 提交 d5d5aa84 编写于 作者: O openharmony_ci 提交者: Gitee

!13937 [翻译完成】#I66W83

Merge pull request !13937 from Annie_wang/PR12668
......@@ -122,7 +122,7 @@ You must install the software packages required for build. The command is as fol
# export PATH=~/.local/bin:$PATH
```
![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>The hb tool will be installed during the installation of **ohos-build**. If hb tool fails to be installed, [install hb](../../device-dev/quick-start/quickstart-pkg-install-tool.md#hb-installation) again.
>**NOTE**<br>The hb tool will be installed during the installation of **ohos-build**. If hb tool fails to be installed, [install hb](../../device-dev/quick-start/quickstart-pkg-install-tool.md#hb-installation) again.
## Configuration Rules
......@@ -205,7 +205,7 @@ Then, run the build commands in command line (CLI) mode or hb mode.
```shell
./build.sh --product-name {product_name} --gn-args is_debug=true
```
> ![icon-caution.gif](../public_sys-resources/icon-caution.gif) **CAUTION**<br/>
> **CAUTION**<br/>
> Due to the limitation of the image size, the full build for the debug version may fail to be burnt. You are advised to build the binary file for each module separately. Run the following command to build a module separately:
>
>
......
......@@ -20,7 +20,7 @@ The chipset solution directory structure is as follows:
└── config.gni # LiteOS_A build configuration
```
![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>The **config.gni** file contains the configuration related to the build of the development board. The parameters in this file are used to compile all OS components and are globally visible during the build process.
**CAUTION**<br>The **config.gni** file contains the configuration related to the build of the development board. The parameters in this file are used to compile all OS components and are globally visible during the build process.
- The **config.gni** file contains the following key parameters:
......
......@@ -47,7 +47,7 @@ The **bundle.json** file of a component is stored in the root directory of the c
}
```
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>Existing components on the LiteOS are configured in the JSON file of the corresponding subsystem in the **build/lite/components** directory. The directory is named in the **{Domain}/{Subsystem}/{Component}** format. The component directory structure is as follows:
> **CAUTION**<br>Existing components on the LiteOS are configured in the JSON file of the corresponding subsystem in the **build/lite/components** directory. The directory is named in the **{Domain}/{Subsystem}/{Component}** format. The component directory structure is as follows:
```shell
component
......
......@@ -198,7 +198,7 @@ ohos_source_set("helloworld") {
}
```
![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>Only **sources** and **part_name** are mandatory.
>**NOTE**<br>Only **sources** and **part_name** are mandatory.
### Prebuilt Template Example
......@@ -281,7 +281,7 @@ ohos_prebuilt_static_library("helloworld") {
}
```
![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>Only **sources** and **part_name** are mandatory.
>**NOTE**<br>Only **sources** and **part_name** are mandatory.
### HAP Templates
......@@ -326,7 +326,7 @@ ohos_sa_profile("helloworld") {
}
```
![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**: Only **sources** and **part_name** are mandatory.
>**NOTE**: Only **sources** and **part_name** are mandatory.
## Adding and Building a Module
......@@ -388,7 +388,7 @@ The figure below illustrates the process for adding a module. A module belongs t
}
```
![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>The **bundle.json** file must be in the folder of the corresponding subsystem.
>**NOTE**<br>The **bundle.json** file must be in the folder of the corresponding subsystem.
3. Start the build and check whether a .so file or binary file is generated.
......
......@@ -19,7 +19,7 @@ vendor
└── ......
```
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>Directories and files must be created for new products based on the preceding rules. The Compilation and Building subsystem scans the configured products based on the rules.
> **NOTE**<br>Directories and files must be created for new products based on the preceding rules. The Compilation and Building subsystem scans the configured products based on the rules.
The key directories and files are described as follows:
......@@ -135,7 +135,7 @@ The key directories and files are described as follows:
- **out** directory of the product, which corresponds to **{root_out_dir}** of GN.
- File system directory **${fs_dir}**, which consists of variables **${root_path}** and **${fs_dir_name}**.
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>**fs.yml** is optional. You do not need to configure it for devices without a file system.
> **NOTE**<br>**fs.yml** is optional. You do not need to configure it for devices without a file system.
6. **vendor/company/product/BUILD.gn**<br>**BUILD.gn** provides the entry for product build. It is used to compile the source code of the solution vendor and copy the startup configuration file. The **BUILD.gn** file in the corresponding product directory will be built by default if a product is selected. The following is an example of the **BUILD.gn** file of a product:
......@@ -184,7 +184,7 @@ You can customize a product solution by assembling any chipset solution and comp
}
```
![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>Before the build, the Compilation and Building subsystem checks the validity of the fields in **config.json**. The **device_company**, **board**, **kernel_type**, and **kernel_version** fields must match the chipset solution, and the **subsystem** and **component** fields must match the component description in **build/lite/components**.
>**NOTE**<br>Before the build, the Compilation and Building subsystem checks the validity of the fields in **config.json**. The **device_company**, **board**, **kernel_type**, and **kernel_version** fields must match the chipset solution, and the **subsystem** and **component** fields must match the component description in **build/lite/components**.
3. Implement OS adaptation APIs. Create the **hals** directory in the product directory and save the source code as well as the build script for OS adaptation in the **hals** directory.
......
......@@ -60,7 +60,7 @@ The dependency between modules can be classified into **deps** (left in the figu
}
```
![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>The dependency between components must be written in the format of **Component name:Module name** in **external_deps**. The dependent module must be declared in **inner_kits**.
> **NOTE**<br>The dependency between components must be written in the format of **Component name:Module name** in **external_deps**. The dependent module must be declared in **inner_kits**.
## Using Sanitizer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册