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

!3968 Modify the name of a product specified for compile

Merge pull request !3968 from frank_bing/20220507
......@@ -9,8 +9,8 @@ The following uses the Hi3516D V300 board and Ubuntu x86 server as an example.
Perform a full build for the project to generate the **uImage** kernel image.
```
./build.sh --product-name Hi3516DV300 # Build the Hi3516D V300 image.
--build-target build_kernel # Build the uImage kernel image of the Hi3516D V300 board.
./build.sh --product-name hispark_taurus_standard # Build the hispark_taurus_standard image.
--build-target build_kernel # Build the uImage kernel image of the hispark_taurus_standard.
--gn-args linux_kernel_version=\"linux-5.10\" # Build the specified kernel version.
```
......@@ -211,7 +211,7 @@ The procedure is as follows:
Run the following command:
```
./build.sh --product-name Hi3516DV300 --build-target hdf_test
./build.sh --product-name hispark_taurus_standard --build-target hdf_test
```
Wait until the build is complete.
......
......@@ -45,4 +45,4 @@ Go to the root directory of the source code in the Ubuntu environment and perfor
5. Check the build result. If "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/hi3516dv300**.
> The build result and log files are stored in **out/hispark_taurus**.
......@@ -213,14 +213,14 @@ The process to build OpenHarmony is as follows:
3. Build the module.
For example, run the following command to build Hi3516D V300:
For example, run the following command to build hispark_taurus_standard:
```
./build.sh --product-name Hi3516DV300 --ccache
./build.sh --product-name hispark_taurus_standard --ccache
```
4. Obtain the build result.
Files generated during the build process are stored in the **out/hi3516dv300/** directory, and the generated image is stored in the **out/hi3516dv300/packages/phone/images/** directory.
Files generated during the build process are stored in the **out/hispark_taurus/** directory, and the generated image is stored in the **out/hispark_taurus/packages/phone/images/** directory.
......@@ -718,13 +718,13 @@ Before executing test cases, you need to modify the configuration based on the d
Test cases cannot be built on Windows. You need to run the following command to build test cases on Linux:
```
./build.sh --product-name Hi3516DV300 --build-target make_test
./build.sh --product-name hispark_taurus_standard --build-target make_test
```
>Note:
>- **product-name**: specifies the name of the product to build, for example, **Hi3516DV300**.
>- **product-name**: specifies the name of the product to build, for example, **hispark_taurus_standard**.
>- **build-target**: specifies the test case to build. **make_test** indicates all test cases. You can specify the test cases based on requirements.
After the build is complete, the test cases are automatically saved in **out/hi3516dv300/packages/phone/tests**.
After the build is complete, the test cases are automatically saved in **out/hispark_taurus/packages/phone/tests**.
#### Setting Up the Execution Environment
1. On Windows, create the **Test** directory in the test framework and then create the **testcase** directory in the **Test** directory.
......
......@@ -182,13 +182,13 @@ For details, see "Usage" in LiteOS-A Kernel [README](https://gitee.com/openharmo
## Build<a name="section19369206113115"></a>
The following uses the Hi3516D V300 development board and Ubuntu x86 server as an example.
The following uses the hispark_taurus development board and Ubuntu x86 server as an example.
Perform a full build for the project to generate the **uImage** kernel image.
```
./build.sh --product-name Hi3516DV300 # Build the Hi3516D V300 image.
--build-target build_kernel # Build the uImage kernel image of Hi3516D V300.
./build.sh --product-name hispark_taurus_standard # Build the hispark_taurus_standard image.
--build-target build_kernel # Build the uImage kernel image of hispark_taurus_standard.
--gn-args linux_kernel_version=\"linux-5.10\" # Build the specified kernel version.
```
......
......@@ -663,11 +663,11 @@ Before executing test cases, you need to modify the configuration based on the d
Test cases cannot be built on Windows. You need to run the following command to build test cases on Linux:
```
./build.sh --product-name Hi3516DV300 --build-target make_test
./build.sh --product-name hispark_taurus_standard --build-target make_test
```
When the build is complete, the test cases are automatically saved in **out/hi3516dv300/packages/phone/images/tests**.
When the build is complete, the test cases are automatically saved in **out/hispark_taurus/packages/phone/images/tests**.
>**NOTE:** In the command, **Hi3516DV300** is the platform supported by the current version, and **make_test** indicates all test cases. You can set the build options based on requirements:
>**NOTE:** In the command, **hispark_taurus_standard** is the product supported by the current version, and **make_test** indicates all test cases. You can set the build options based on requirements:
> - --**product-name**: specifies the name of the product to build. It is mandatory.
> - --**build-target**: specifies the target to build. It is optional.
......
# Linux内核编译与构建指导
- [开发示例1](#开发示例1)
- [Linux内核编译与构建指导](#linux内核编译与构建指导)
- [开发示例1](#开发示例1)
## 开发示例1
......@@ -11,7 +12,7 @@
```
./build.sh --product-name Hi3516DV300 # 编译hi3516dv300镜像
--build-target build_kernel # 编译hi3516dv300的uImage内核镜像
./build.sh --product-name hispark_taurus_standard # 编译hispark_taurus_standard镜像
--build-target build_kernel # 编译hispark_taurus_standard的uImage内核镜像
--gn-args linux_kernel_version=\"linux-5.10\" # 编译指定内核版本
```
......@@ -230,7 +230,7 @@ HDF(Hardware Driver Foundation)自测试用例,用于测试HDF框架和外
```
./build.sh --product-name Hi3516DV300 --build-target hdf_test
./build.sh --product-name hispark_taurus_standard --build-target hdf_test
```
等待编译完成。
......
......@@ -45,4 +45,4 @@ OpenHarmony支持hb和build.sh两种编译方式。此处介绍hb方式,build.
5. 编译结束后,出现“build success”字样,说明构建成功。
> ![icon-notice.gif](public_sys-resources/icon-notice.gif) **须知:**
> 编译结果文件及编译日志文件获取路径:out/hi3516dv300
> 编译结果文件及编译日志文件获取路径:out/hispark_taurus
......@@ -216,14 +216,14 @@ OpenHarmony侧的编译构建流程主要包括编译命令行解析,调用gn
在产品配置文件中添加 "subsystem_examples:partA",表示该产品中会编译并打包partA到版本中。
3. 编译。
以编译Hi3516DV300为例,编译命令如下:
以编译hispark_taurus_standard为例,编译命令如下:
```
./build.sh --product-name Hi3516DV300 --ccache
./build.sh --product-name hispark_taurus_standard --ccache
```
4. 编译输出。
编译所生成的文件都归档在out/hi3516dv300/目录下,结果镜像输出在 out/hi3516dv300/packages/phone/images/ 目录下。
编译所生成的文件都归档在out/hispark_taurus/目录下,结果镜像输出在 out/hispark_taurus/packages/phone/images/ 目录下。
## 常见问题
......
......@@ -718,13 +718,13 @@ subsystem # 子系统
由于Windows环境下无法实现用例编译,因此执行用例前需要在Linux环境下进行用例编译,用例编译命令:
```
./build.sh --product-name Hi3516DV300 --build-target make_test
./build.sh --product-name hispark_taurus_standard --build-target make_test
```
>说明:
>- product-name:指定编译产品名称,例如Hi3516DV300
>- product-name:指定编译产品名称,例如hispark_taurus_standard
>- build-target:指定所需要编译的用例,make_test表示指定全部用例,实际开发中可指定特定用例。
编译完成后,测试用例将自动保存在out/hi3516dv300/packages/phone/tests目录下。
编译完成后,测试用例将自动保存在out/hispark_taurus/packages/phone/tests目录下。
#### 搭建执行环境
1. 在Windows环境创建测试框架目录Test,并在此目录下创建testcase目录
......
......@@ -198,7 +198,7 @@ Hi3518EV300默认使用jffs2文件系统,Hi3516DV300默认使用FAT文件系
使用工程的全量编译命令,编译生成uImage内核镜像
```
./build.sh --product-name Hi3516DV300 # 编译hi3516dv300镜像
./build.sh --product-name hispark_taurus_standard # 编译hi3516dv300镜像
--build-target build_kernel # 编译hi3516dv300的uImage内核镜像
--gn-args linux_kernel_version=\"linux-5.10\" # 编译指定内核版本
```
......
......@@ -661,11 +661,11 @@ subsystem # 子系统
由于Windows环境下无法实现用例编译,因此执行用例前需要在Linux环境下进行用例编译,用例编译命令:
```
./build.sh --product-name Hi3516DV300 --build-target make_test
./build.sh --product-name hispark_taurus_standard --build-target make_test
```
编译完成后,测试用例将自动保存在out/hi3516dv300/packages/phone/images/tests目录下。
编译完成后,测试用例将自动保存在out/hispark_taurus/packages/phone/images/tests目录下。
>说明: Hi3516DV300为当前版本所支持的平台,make_test表示全部用例。根据不同需求,编译选项可进行不同选择:
>说明: hispark_taurus_standard为当前版本所支持的产品,make_test表示全部用例。根据不同需求,编译选项可进行不同选择:
> - --product-name # 编译产品名称(必选)
> - --build-target # 指定编译目标(可选)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册