From 851fdc7387f6f616fdf1becd124edf331cad8811 Mon Sep 17 00:00:00 2001 From: fanglinxu Date: Wed, 21 Sep 2022 14:56:34 +0800 Subject: [PATCH] docs: fix document typos and statement errors this fix issue: https://gitee.com/openeuler/yocto-meta-openeuler/issues/I5S55Z?from=project-issue https://gitee.com/openeuler/yocto-meta-openeuler/issues/I5S2TX?from=project-issue https://gitee.com/openeuler/yocto-meta-openeuler/issues/I5SA5R?from=project-issue Signed-off-by: fanglinxu --- docs/source/features/distributed_softbus.rst | 6 +++--- docs/source/getting_started/index.rst | 8 +++++--- docs/source/yocto/overview.rst | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/source/features/distributed_softbus.rst b/docs/source/features/distributed_softbus.rst index 8893f33d3cd..fb6ee4f346a 100644 --- a/docs/source/features/distributed_softbus.rst +++ b/docs/source/features/distributed_softbus.rst @@ -128,7 +128,7 @@ softbus客户端API头文件在嵌入式版本提供的sdk中对外开放,可 客户端提供动态链接库:libsoftbus_client.z.so -用户使用软总线时,需要作为客户端程序显示链接该动态库,即可通过函数调用使用软总线提供的API。 +用户使用软总线时,需要作为客户端程序显式链接该动态库,即可通过函数调用使用软总线提供的API。 .. code-block:: console @@ -368,7 +368,7 @@ hichain的客户端API头文件在嵌入式版本提供的sdk中对外开放, 客户端提供动态链接库:libdeviceauth_sdk.z.so -用户使用hichain创建群组和添加可信设备时,需要作为客户端程序显示链接该动态库,即可通过函数调用使用hichain提供的API。 +用户使用hichain创建群组和添加可信设备时,需要作为客户端程序显式接该动态库,即可通过函数调用使用hichain提供的API。 .. code-block:: console @@ -377,7 +377,7 @@ hichain的客户端API头文件在嵌入式版本提供的sdk中对外开放, **使用范例** -1.按照hichain的点对点pin码认证方式,需要一台设备创建群组(host),另一个台设备请求添加成员到改群组(target),实例代码如下: +1.按照hichain的点对点pin码认证方式,需要一台设备创建群组(host),另一个台设备请求添加成员到该群组(target),实例代码如下: .. code-block:: console diff --git a/docs/source/getting_started/index.rst b/docs/source/getting_started/index.rst index eba57f3af49..31afd5007f8 100644 --- a/docs/source/getting_started/index.rst +++ b/docs/source/getting_started/index.rst @@ -275,7 +275,7 @@ openEuler Embedded传输文件。 printf("hello world\n"); } - 编写CMakelist.txt,和hello.c文件放在同一个目录。 + 编写CMakelists.txt,和hello.c文件放在同一个目录。 :: @@ -313,6 +313,8 @@ openEuler Embedded传输文件。 在设置好SDK环境的基础之上,编译内核模块还需准备相应环境,但只需要准备一次即可。运行如下命令会创建相应的内核模块编译环境: + (22.09及其之后版本在初始化编译环境变量时,会自动执行此步骤,可以跳过此步骤) + .. code-block:: console cd /sysroots/-openeuler-linux/usr/src/kernel @@ -340,8 +342,8 @@ openEuler Embedded传输文件。 printk("Byebye!"); } - module_init(hello_init) - module_exit(hello_exit) + module_init(hello_init); + module_exit(hello_exit); MODULE_LICENSE("GPL"); diff --git a/docs/source/yocto/overview.rst b/docs/source/yocto/overview.rst index 2d0f60bdbb9..84d73ba5a53 100644 --- a/docs/source/yocto/overview.rst +++ b/docs/source/yocto/overview.rst @@ -13,7 +13,7 @@ OpenEmbedded项目(OpenEmbedded Project,后简称OpenEmbedded),并与之 Yocto为构建定制化的嵌入式Linux发行版提供一系列模板、工具和方法来简化定制Linux开发,允许更换软件配置和构建,避免重复工作 以及不必要的维护。Yocto鼓励跨各种应用程序和设备类型的创新,支持多种硬件架构,包括X86(32位和64位)、ARM(32w位和64位)、 -、RISC-V、PPC和MIPS等。随着硬件BSP支持的增加和BSP格式的标准化,这个项目创造了巨大的价值。 +RISC-V、PPC和MIPS等。随着硬件BSP支持的增加和BSP格式的标准化,这个项目创造了巨大的价值。 Yocto和OpenEmbedded共享一个核心元数据集合,称为OpenEmbedded-Core。OpenEmbedded为各种体系结构、功能和应用程序 提供了一套全面的元数据, 而Yocto专注于为一组核心架构和特定单板提供功能强大、易于使用、可互操作、经过良好测试的工具、元数 -- Gitee