forked from ZengjfOS/anpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
149 lines (149 loc) · 2.84 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
54
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
/**
* defaultPath: 默认路径,用于存放所有项目的根目录,所有的目录跳转基于该目录
*/
"defaultPath": "~/zengjf",
/**
* project支持的key,这里相当于是定义,后面projects数组中的每个project相当于赋值,
* 定义了不一定要赋值,没赋值会被'.'(目录)替换
*/
"project_keys": [
"project",
"product",
"kernel",
"dts",
"bootloaderStage1",
"bootloaderStage2",
"out",
"efuse",
"image",
"output"
],
/**
* project数组,每个project可以包含project_keys数组中的字段,不一定需要完全包含
*/
"projects": [
{
"project": "M0-project",
"product": "M0",
"kernel": "kernel-4.9",
"dts": "arch/arm64/boot/dts/mediatek/",
"bootloaderStage1": "vendor/mediatek/proprietary/bootable/bootloader/preloader",
"bootloaderStage2": "vendor/mediatek/proprietary/bootable/bootloader/lk",
"out": "out/target/product",
"efuse": "vendor/mediatek/proprietary/scripts/sign-image_v2"
},
{
"project": "M8-project",
"product": "k62v1_64",
"kernel": "kernel-4.19",
"dts": "arch/arm64/boot/dts/mediatek/",
"bootloaderStage1": "vendor/mediatek/proprietary/bootable/bootloader/preloader",
"bootloaderStage2": "vendor/mediatek/proprietary/bootable/bootloader/lk",
"out": "out/target/product",
"efuse": "vendor/mediatek/proprietary/scripts/sign-image_v2",
"image": "preloader.bin lk.img",
"output": "prebuild_images"
}
],
/**
* 每一个component用于合成一条支持的命令,cmd字段用于生成alias,combine字段用于合成alias的路径,
* combine数组中的内容来自project_keys中的组合
*/
"components": [
{
"cmd": "android",
"type": "dir",
"combine":[
"defaultPath",
"project"
]
},
{
"cmd": "kernel",
"type": "dir",
"combine":[
"defaultPath",
"project",
"kernel"
]
},
{
"cmd": "dts",
"type": "dir",
"combine":[
"defaultPath",
"project",
"kernel",
"dts"
]
},
{
"cmd": "out",
"type": "dir",
"combine":[
"defaultPath",
"project",
"out",
"product"
]
},
{
"cmd": "bs1",
"type": "dir",
"combine":[
"defaultPath",
"project",
"bootloaderStage1"
]
},
{
"cmd": "bs2",
"type": "dir",
"combine":[
"defaultPath",
"project",
"bootloaderStage2"
]
},
{
"cmd": "efuse",
"type": "dir",
"combine":[
"defaultPath",
"project",
"efuse"
]
},
{
"cmd": "images",
"type": "file",
"combine":[
"defaultPath",
"project",
"out",
"product"
],
"file": "image",
"output": [
"defaultPath",
"project",
"output"
]
}
],
"alias": [
{
"cmd": "pl",
"shell": "bs1"
},
{
"cmd": "lk",
"shell": "bs2"
},
{
"cmd": "adbtools",
"shell": "~/.anpp/adbtools.py ~/.anpp/adbtools.json"
}
]
}