-
Notifications
You must be signed in to change notification settings - Fork 37
/
Kconfig
192 lines (152 loc) · 3.44 KB
/
Kconfig
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
mainmenu "SHL Configuration"
choice
prompt "Build target"
default BUILD_X86
config BUILD_X86
bool "x86"
help
Build x86 reference library
config BUILD_RISCV
bool "riscv"
help
Build RISC-V library
config BUILD_RISCV_ELF
bool "riscv elf"
help
Build RISC-V Elf library
config BUILD_CSKY
bool "csky"
help
Build C-SKY library
config BUILD_CSKY_ELF
bool "csky elf"
help
Build C-SKY elf library
endchoice
choice
prompt "x86 platform"
depends on BUILD_X86
default BUILD_X86_REF
config BUILD_X86_REF
bool "x86_ref"
help
Build x86 c reference library
config BUILD_X86_PNNA
bool "x86_pnna"
help
Build pnna x86 simulate so
config BUILD_X86_HLIGHT
bool "x86_hlight"
help
Build heterogeneous pnna x86 simulate so
endchoice
choice
prompt "RISC-V platform"
depends on BUILD_RISCV
default BUILD_RISCV_RVV
config BUILD_RISCV_RVV
bool "RISC-V V"
help
Build RISC-V V common library
config BUILD_RISCV_C906_STATIC
bool "C906 static"
help
Build C906 V static library
config BUILD_RISCV_C906_SHARE
bool "C906 share"
help
Build C906 V share library
config BUILD_RISCV_RVM
bool "RVM"
help
Build RISC-V vector and matrix static library
config BUILD_RISCV_C908
bool "C908"
help
Build C908 V static library
config BUILD_RISCV_C920
bool "C920"
help
Build C920 V static library
config BUILD_RISCV_C920V2
bool "C920V2"
help
Build C920V2 V static library
config BUILD_RISCV_PNNA
bool "pnna"
help
Build pnna so
config BUILD_RISCV_HLIGHT
bool "hlight"
help
Build heterogeneous pnna so
endchoice
choice
prompt "RISC-V elf platform"
depends on BUILD_RISCV_ELF
default BUILD_RISCV_ELF_C906
config BUILD_RISCV_ELF_C906
bool "C906 elf"
help
Build C906 V static library
config BUILD_RISCV_ELF_E907
bool "e907 elf"
help
Build E907 P extend static library
endchoice
choice
prompt "C-SKY platform"
depends on BUILD_CSKY
default BUILD_CSKY_OPENVX
config BUILD_CSKY_OPENVX
bool "openvx"
help
Build openvx library
endchoice
config CUSTOM_SOURCE_SELECT
bool
default y
source "source/reference/Kconfig"
source "source/graph_ref/Kconfig"
source "source/thead_rvv/Kconfig"
source "source/c906_opt/Kconfig"
source "source/c908_opt/Kconfig"
source "source/e907_opt/Kconfig"
source "source/c920_opt/Kconfig"
source "source/c920v2_opt/Kconfig"
menu "Debug and profile Options"
config USE_SHL_DEBUG
bool "SHL debug and log module"
help
Select SHL debug and log module
config SHL_LAYER_BENCHMARK
bool "Layer information and performance"
help
Print the execution time of each layer
config USE_COMPILER_PATH
bool "Custom compiler path"
help
Set this option if you have a custom compiler which needed to
be define in CMAKE_C_COMPILER.
config CMAKE_C_COMPILER
string "Path to c compiler"
default "riscv64-unknown-linux-gnu-gcc"
depends on USE_COMPILER_PATH
help
Path to the c compiler to be used instead of the one define by the
board.
config CMAKE_CXX_COMPILER
string "Path to cxx compiler"
default "riscv64-unknown-linux-gnu-g++"
depends on USE_COMPILER_PATH
help
Path to the cxx compiler to be used instead of the one define by the
board.
config CMAKE_ASM_COMPILER
string "Path to asm compiler"
default "riscv64-unknown-linux-gnu-gcc"
depends on USE_COMPILER_PATH
help
Path to the asm compiler to be used instead of the one define by the
board.
endmenu