提交 9957c8e8 编写于 作者: Z zhang

modify hdf document

Signed-off-by: Nzhang <zhangfengxi@huawei.com>
上级 3110703a
......@@ -102,14 +102,15 @@ HDF框架以组件化的驱动模型作为核心设计思路,为开发者提
module_switch = defined(LOSCFG_DRIVERS_HDF_xxx)
module_name = "xxx"
hdf_driver(module_name) {
sources = [
"xxx/xxx/xxx.c",
]
public_configs = [ ":public" ] --添加依赖头文件
sources = [
"xxx/xxx/xxx.c", #模块要编译的源码文件
]
public_configs = [ ":public" ] #使用依赖的头文件配置
}
config("public") { --定义依赖的头文件
include_dirs = [
]
config("public") { #定义依赖的头文件配置
include_dirs = [
"xxx/xxx/xxx", #依赖的头文件
]
}
```
......@@ -119,7 +120,7 @@ HDF框架以组件化的驱动模型作为核心设计思路,为开发者提
group("liteos") {
public_deps = [ ":$module_name" ]
deps = [
"xxx/xxx", --新增模块BUILD.gn所在的目录
"xxx/xxx", #新增模块BUILD.gn所在的目录,目录结构相对于/drivers/adapter/khdf/liteos
]
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册