This repository has been archived by the owner on Jan 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Kconfig.melis
executable file
·258 lines (216 loc) · 6.03 KB
/
Kconfig.melis
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
# Kconfig - general configuration options
#
# Copyright (c) 2014-2015 Wind River Systems, Inc.
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
menu "Environment Setup"
config SDK_RELEASE
bool "sdk release for customer flag."
default n
config DEBUG_INFO
bool "Generate DEBUG Info."
default y
config DEBUG_MACROS
bool "show macros value on debugger"
default n
config MODULES
bool "Support Modules"
default y
config MODVERSIONS
bool "Modversions"
default y
config BOOT_LOGO_BMP
bool "boot logo bmp"
default y
config SHOW_FULL_VERSION
bool "displays full version information."
default y
config CROSS_COMPILE
string "Cross-compiler tool prefix"
default arm-melis-eabi-
#default arm-none-eabi-
#default arm-eabi-
help
Same as running 'make CROSS_COMPILE=prefix-' but stored for
default make runs in this kernel build directory. You dont
need to set this unless you want the configured kernel build
directory to select the cross-compiler automatically.
config INIT_CARD_PRODUCT
bool "Init mod card product"
default n
help
config LOG_DEFAULT_LEVEL
int
prompt "Default log level"
default 1
range 0 5
help
Sets log level for modules which dont specify it explicitly. When
set to 0 it means log wont be activated for those modules.
Levels are:
0 OFF, do not write by default
1 LOG, default to only write SYS_LOG
2 ERROR, default to only write SYS_LOG_ERR
3 WARNING, default to write SYS_LOG_WRN in addition to previous level
4 INFO, default to write SYS_LOG_INF in addition to previous levels
5 DEBUG, default to write SYS_LOG_DBG in addition to previous levels
config CC_STACKPROTECTOR_STRONG
bool "enable stack-protector"
default y
help
Enable stack-proctor
config LOG_RELEASE
bool "Log release option"
default n
help
Reduce log
config BOOTUP_TURBO
bool "bootup turbost"
default n
select SDK_THUMB_MODE
help
fast bootup
config DISABLE_ALL_DEBUGLOG
bool "disable module log verbose"
default n
help
Reduce all the log.
config PRINT_TIMESTAMP
bool "printk prints timestamps"
default n
help
printk prints timestamps.
config DYNAMIC_LOG_LEVEL_SUPPORT
bool "dynamic log level support"
help
support set log level when system up.
if DYNAMIC_LOG_LEVEL_SUPPORT
choice
prompt "Log Level Save"
default LOG_LEVEL_STORAGE_NONE
help
select log level storage position
config LOG_LEVEL_STORAGE_NONE
bool "NONE"
help
"Just a global variable to save log level"
config LOG_LEVEL_STORAGE_RTC
bool "RTC"
help
"Use RTC register to save log level"
endchoice
config DYNAMIC_LOG_DEFAULT_LEVEL
int "dynamic log level"
default 5
range 0 5
help
set dynamic log level, it will set initial value for g_log_level in printk.
0 NONE, do not write by default
1 LOG, default to only write SYS_LOG
2 ERROR, default to only write SYS_LOG_ERR
3 WARNING, default to write SYS_LOG_WRN in addition to previous level
4 INFO, default to write SYS_LOG_INF in addition to previous levels
5 DEBUG, default to write SYS_LOG_DBG in addition to previous levels"
endif
config FRAME_POINTER
bool "enable FP register as frame pointer"
default y
select CC_OPTIMIZE_FOR_DEBUG
help
frame pointer enabled!
config FRAME_WARN
int "Warn for stack frames larger than (needs gcc 4.4)"
range 0 8192
default 8192
help
Tell gcc to warn at build time for stack frames larger than this.
Setting this too low will cause a lot of warnings.
Setting it to 0 disables the warning.
Requires gcc 4.4
choice
prompt "Io Lock"
default UART_CLI_USE_NONE
config UART_CLI_USE_NONE
bool "Lock None"
config UART_CLI_USE_MUTEX
bool "Use Mutex"
config UART_CLI_USE_SPINLOCK
bool "Use SpinLock"
endchoice
choice
prompt "Compiler optimization level"
default CC_OPTIMIZE_FOR_DEBUG if FRAME_POINTER=y
default CC_OPTIMIZE_FOR_SIZE if FRAME_POINTER=n
config CC_OPTIMIZE_FOR_SIZE
bool "Optimize for release"
help
Enabling this option will pass "-Os" instead of "-O0" to your compiler
resulting in a smaller kernel, this is the default optimization level
for the kernel.
config CC_OPTIMIZE_FOR_DEBUG
bool "Optimize for debug"
help
Building the project with '-O0' optimization level for best performance
and generate most helpful debug infomation for GDB.
endchoice
config CC_OPTIMIZE_LEVEL
int "Optimize for debug"
default 0
range 0 3
depends on CC_OPTIMIZE_FOR_DEBUG
help
Building the project with optimization level(range 0-3)
config ARM_UNWIND
bool "Enable stack unwinding support (EXPERIMENTAL)"
default n if FRAME_POINTER=y
help
This option enables stack unwinding support in the kernel
using the information automatically generated by the
compiler. The resulting kernel image is slightly bigger but
the performance is not affected. Currently, this feature
only works with EABI compilers. If unsure say Y.
config OS_MELIS
bool "Melis OS"
default y
config KALLSYMS
bool "keep Melis kernel symbols"
default n
if KALLSYMS
config KALLSYMS_ALL
bool "keep Melis kernel all symbols"
default n
endif
config SDK_THUMB_MODE
bool "Enable Thumb mode sdk compile flags"
depends on BOOTUP_TURBO
help
compile whole sdk with -mthumb flags.
config MELIS_GENERATE_HEAD
bool "Generate melis head"
default y
help
general epos_hdr head.
menu "Toolchain Setup"
config TOOLCHAIN_MACH_FLAGS
string "Toolchain arch flags"
default ""
help
Toolchain Arch Flags
config TOOLCHAIN_LD_FLAGS
string "Toolchain ld flags"
default ""
help
Toolchain LD Flags
endmenu
endmenu