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