xref: /DADK/dadk-config/templates/config/userapp_config.toml (revision d2ade6ef037f43d0342021730a0d8b3af7bc36c1)
1# 用户程序名称
2name = "userapp_config"
3
4# 版本号
5version = "0.2.0"
6
7# 用户程序描述信息
8description = ""
9
10# (可选)是否只构建一次,如果为true,DADK会在构建成功后,将构建结果缓存起来,下次构建时,直接使用缓存的构建结果
11build-once = true
12
13#  (可选) 是否只安装一次,如果为true,DADK会在安装成功后,不再重复安装
14
15install-once = true
16
17# 目标架构
18# 可选值:"x86_64", "aarch64", "riscv64"
19target-arch = ["x86_64"]
20
21# 任务源
22[task-source]
23
24# 构建类型
25# 可选值:"build-from_source", "install-from-prebuilt"
26type = "build-from-source"
27
28# 构建来源
29# "build_from_source" 可选值:"git", "local", "archive"
30# "install_from_prebuilt" 可选值:"local", "archive"
31source = "git"
32
33# 路径或URL
34source-path = "https://git.mirrors.dragonos.org.cn/DragonOS-Community/test_git.git"
35
36# git标签或分支
37# 注意: branch和revision只能二选一,且source要设置为"git"
38revision = "01cdc56863"
39# branch = "test"
40
41# 构建相关信息
42[build]
43
44# (可选)构建命令
45build-command = "make install"
46
47# 安装相关信息
48[install]
49
50# (可选)安装到DragonOS的路径
51in-dragonos-path = "/bin"
52
53# 清除相关信息
54[clean]
55
56# (可选)清除命令
57clean-command = "make clean"
58
59# (可选)依赖项
60# 注意:如果没有依赖项,忽略此项,不允许只留一个[[depends]]
61[[depends]]
62name = "depend1"
63version = "0.1.1"
64
65[[depends]]
66name = "depend2"
67version = "0.1.2"
68
69# (可选)环境变量
70[[envs]]
71key = "PATH"
72value = "/usr/bin"
73
74[[envs]]
75key = "LD_LIBRARY_PATH"
76value = "/usr/lib"
77