1 Star 3 Fork 6

AliOS Things / ota_demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
package.yaml 6.80 KB
一键复制 编辑 原始数据 按行查看 历史
skylarCai 提交于 2021-09-17 13:59 . release version:rel_3.3.0-20210914_1400
## 第一部分: 基础信息
name: ota_demo # <必选项> 包名称 (符合C语言变量命名规则),长度少于等于64字节
version: master # <必选项> 组件版本号
description: 远程升级功能(OTA)的使用例程,用户可以通过此用例验证固件升级等功能;
type: solution # <必选项> 组件类型,为:solution, board, chip, arch, drv_core, drv_peripheral, drv_external_device, kernel, common, sdk, document
## 第二部分:依赖信息
# 指定该组件依赖的组件及版本,未来版本支持条件比较,支持:>=v1.0, >v1.0, ==v1.0, <=v1.0, <v1.0, v1.0
# 目前仅支持指定某一个版本,如 v1.0 与 ==v1.0
# 依赖还可以包含条件,条件可以不定义(即false);也可以是组件(该组件或其它组件)里的def_config里的宏,且取值为0(即false),1(即true)
# depends: # <可选项> 该组件依赖其他的组件,合理的依赖才能保证组件能编译、使用
# - minilibc: 'v7.2.0'
# - aos: 'v7.2.0 ? <ENABLE_AOS>'
depends:
- ota: master
- cjson: master
- cli: master
- netmgr: master
- lwip: master
- netmgr: master
- ulog: master
- uservice: master
- wifi: master
- mbedtls: master
- linksdk: master
# supported_boards 中记录当前组件能支持的所有板子
supported_boards:
- haas100: master
- haas200: master
- haaseduk1: master
## 第三部分:板级信息
# hw_info: # 对 solution、board、chip 三个字段的改进,统称为 hw_info 字段
# cpu_id: cpu0
# cpu_name: CK804EF
# vendor_name: t-head
# chip_name: chip_pangu # <可选项> 指定芯片组件名,未设置时,使用depends中 chip 第一个组件
# board_name: pangu_cpu0_evb # <可选项> 指定开发板组件名,未设置时,使用depends中 board 第一个组件
# ld_script: configs/gcc_eflash.ld # <可选项> 连接时使用 LD 脚本,当选把未设置时,使用对应的 board 的 LD 脚本
# flash_program: bin/flash_program.elf # <可选项> 芯片全局烧写程序
# toolchain_prefix: csky-abiv2-elf # <可选项> 编译器前缀
# cpu0:
# cpu_name: CK804EF # <必选项> 该芯片使用的 CPU 型号
# ld_script: configs/gcc_eflash.ld # <必选项> 连接时使用 LD 脚本
# flash_program: bin/flash_program.elf # <可选项> 该CPU对应烧写程序,未指定时使用全局烧写程序
# toolchain_prefix: csky-abiv2-elf # <可选项> 编译器前缀
# cpu1:
# cpu_name: CK804EF # <必选项> 该芯片使用的 CPU 型号
# ld_script: configs/gcc_eflash.ld # <可选项> 连接时使用 LD 脚本
# flash_program: bin/flash_program.elf # <可选项> 该CPU对应烧写程序,未指定时使用全局烧写程序
# toolchain_prefix: csky-abiv2-elf # <可选项> 编译器前缀
## solution component
# hw_info:
# cpu_id: cpu0
# board_name: pangu_cpu0_evb
# cpu_name: CK805EF
# vendor_name: thead
# chip_name: 'chip_pangu'
# ld_script: configs/gcc_eflash.ld.S
## board component
# hw_info:
# chip_name: chip_pangu
# ld_script: configs/gcc_eflash.ld
## chip component (单处理器)
# hw_info:
# cpu_name: CK804EF
# ld_script: configs/gcc_eflash.ld
# toolchain_prefix: csky-abiv2-elf
# flash_program: bin/flash_program.elf
## chip component(多处理器)
# hw_info:
# cpu0:
# cpu_name: CK804EF # <必选项> 该芯片使用的 CPU 型号
# ld_script: configs/gcc_eflash.ld # <必选项> 连接时使用 LD 脚本
# flash_program: bin/flash_program.elf # <可选项> 该CPU对应烧写程序,未指定时使用全局烧写程序
# toolchain_prefix: csky-abiv2-elf # <可选项> 编译器前缀
# cpu1:
# cpu_name: CK804EF # <必选项> 该芯片使用的 CPU 型号
# ld_script: configs/gcc_eflash.ld # <必选项> 连接时使用 LD 脚本
# flash_program: bin/flash_program.elf # <可选项> 该CPU对应烧写程序,未指定时使用全局烧写程序
# toolchain_prefix: csky-abiv2-elf # <可选项> 编译器前缀
solution:
cpu_id: cpu0
board_name: haas100
## 第四部分:编译连接信息
# 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
# source_file: # <可选项> 指定参与编译的源代码文件,支持通配符,采用相对路径
# - src/*.c # 例:组件 src 目录下所有的扩展名为 c 的源代码文件
source_file:
- "maintask.c"
- "otaappdemo.c"
## 第五部分:配置信息
# def_config: # 组件的可配置项
# CONFIG_DEBUG: y
# CONFIG_PARAM_NOT_CHECK: y
# CONFIG_CLI: y
def_config:
OTA_DEMO_CONFIG_TEST_LOOP: 1
CLI_IOBOX_ENABLE: 1 # 使能文件系统
## 第六部分:安装信息
# install:
# - dest: include/ # 安装的目的路径 dest是相当路径,通常是相对于AOS SDK 安装目录
# source: # 安装源列表
# - src/*.h # 支持通配符,相对路径
## 第七部分:导出部分
# export:
# - dest: "<SOLUTION_PATH>/generated/data" # 安装的目的路径 dest是相当路径
# source: # 安装源列表
# - "bootimgs/boot"
# - "bootimgs/tee"
# - "bootimgs/mtb"
# - "configs/config.yaml"
1
https://gitee.com/alios-things/ota_demo.git
git@gitee.com:alios-things/ota_demo.git
alios-things
ota_demo
ota_demo
master

搜索帮助