package.yaml 4.6 KB
Newer Older
J
Jinliang Li 已提交
1 2 3

## 第一部分: 基础信息
name: base                                          # <必选项> 包名称 (符合C语言变量命名规则),长度少于等于64字节
4
version: master                                    # <必选项> 组件版本号
J
Jinliang Li 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
description: 通用驱动,主要包含直接调用CSI驱动的实现。 # <必选项> 建议至少20字以上
type: common                                        # <必选项> 组件类型,为:solution, chip, board, common, sdk

tag: 核心驱动层                                     # <可选项> 组件分类,缺省值: ''
keywords:                                           # <可选项> 标签,会影响到组件被搜索的效果,合理的标签很重要
  - core driver model, devicevfs, platform
license: Apache license v2.0                        # <可选项> 源代码的许可证,要确保所有代码、文件的许可证不冲突。如:MIT,Apache license v2.0,BSD

## 第二部分:依赖信息
#           指定该组件依赖的组件及版本,版本支持条件比较,支持:>=v1.0, >v1.0, ==v1.0, <=v1.0, <v1.0, v1.0
#           未指定条件时,默认为 ==,如 v1.0 与 ==v1.0
# depends:                                 # <可选项> 该组件依赖其他的组件,合理的依赖才能保证组件能编译、使用
#   - minilibc: v7.2.0
#   - aos: >=v7.2.0
depends:
20
  - vfs: master
J
Jinliang Li 已提交
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

## 第四部分:编译连接信息
# build_config:                            # <可选项> 编译配置项
#   include:                               # <可选项> 编译时,影响编译器的-I 参数 ,全局有效
#     - src                                #        include 只能是该软件包下的目录,不能使用外部目录
#   internal_include:                      # <可选项> 编译时,影响编译器的-I 参数 ,组件内有效
#     - include
#   cflag: ''                              # <可选项> C 编译器所需要要的编译参数
#   cxxflag: ''                            # <可选项> CXX 编译器所需要要的编译参数
#   asmflag: ''                            # <可选项> 汇编器所需要要参数
#   define:                                # <可选项> 宏定义, 增加编译器的-D 选项,如:
#     XXX: 1                               #   -DXXX=1
#     AAA: 1                               #   -DAAA
#     STR: "abc"                           #   -DSTR="abc"
#   libs:                                  # 该组件中支持的二进制静态库,如:libxxx.a, libyyy.a
#     - xxx                                #   -lxxx
#     - yyy                                #   -lyyy
#   libpath:                               # 指定静态库所在的路径(相对于该组件路径)
#     - libs                               #   -Llibs
build_config:
  include:
    - include

  define:
    ENABLE_UBUS_MODEL: 1
    ENABLE_UDRV_MODEL: 1
    ENABLE_UDEV_MODEL: 1
#    USER_SPACE_DRIVER: 1                  # define it to 1 in micro kernel system
#    ENABLE_IO_MMAP: 1                     # define it to 1 in micro kernel system

# source_file:                             # <可选项> 指定参与编译的源代码文件,支持通配符,采用相对路径
#   - src/*.c                              # 例:组件 src 目录下所有的扩展名为 c 的源代码文件
source_file:
54
  - src/device.c
J
Jinliang Li 已提交
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101

# core driver module
  - core/u_bus.c ? <CONFIG_DRV_CORE>
  - core/u_device.c ? <CONFIG_DRV_CORE>
  - core/u_driver.c ? <CONFIG_DRV_CORE>
  - core/u_ld.c ? <CONFIG_DRV_CORE>

# u_platform bus driver
  - platform/u_platform_bus.c ? <CONFIG_DRV_PLATFORM>

# device vfs core module
  - devicevfs/src/device_vfs_core.c ? <CONFIG_DRV_VFS>
  - devicevfs/src/u_driver_main.c ? <CONFIG_DRV_VFS>

# os driver entry
  - devicevfs/src/u_driver_hub.c ? <CONFIG_DRV_VFS>

## 第五部分:配置信息
# def_config:                              # 组件的可配置项
#   CONFIG_DEBUG: y
#   CONFIG_PARAM_NOT_CHECK: y
#   CONFIG_CLI: y
def_config:
  CONFIG_DRV_CORE: 1
  CONFIG_DRV_PLATFORM: 1

  CONFIG_DRV_VFS: 1

  CONFIG_COM_DRV: 1

## 第六部分:安装信息
# install:
#   - dest: include/                       # 安装的目的路径 dest是相当路径,通常是相对于YoC SDK 安装目录
#     source:                              # 安装源列表
#      - src/*.h                           # 支持通配符,相对路径
install:
  - dest: "include/devices"
    source:

## 第七部分:导出部分
# export:
#   - dest: "<SOLUTION_PATH>/generated/data" # 安装的目的路径 dest是相当路径
#     source:                                # 安装源列表
#       - "bootimgs/boot"
#       - "bootimgs/tee"
#       - "bootimgs/mtb"
#       - "configs/config.yaml"