-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
76 lines (65 loc) · 1.25 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
mainmenu "SEMU Configuration Menu"
source "src/memory/Kconfig"
source "src/device/Kconfig"
choice
prompt "Build target"
default TARGET_NATIVE_ELF
config TARGET_NATIVE_ELF
bool "Executable on Linux Native"
config TARGET_SHARE
bool "Shared object (used as REF for differential testing)"
endchoice
menu "Build Options"
choice
prompt "Compiler"
default CC_CLANG
config CC_GCC
bool "gcc"
config CC_GPP
bool "g++"
config CC_CLANG
bool "clang"
endchoice
config CC
string
default "gcc" if CC_GCC
default "g++" if CC_GPP
default "clang" if CC_CLANG
default "none"
choice
prompt "Optimization Level"
default CC_O2
config CC_O0
bool "O0"
config CC_O1
bool "O1"
config CC_O2
bool "O2"
config CC_O3
bool "O3"
endchoice
config CC_OPT
string
default "-O0" if CC_O0
default "-O1" if CC_O1
default "-O2" if CC_O2
default "-O3" if CC_O3
default "none"
config CC_LTO
bool "Enable link-time optimization"
default n
config CC_DEBUG
bool "Enable debug information"
default n
config CC_ASAN
bool "Enable address sanitizer"
default n
endmenu
menu "Run Options"
config RUNTIME_CHECK
bool "Enable runtime check"
default y
endmenu
source "src/monitor/Kconfig"
source "src/utils/trace/Kconfig"
source "src/utils/difftest/Kconfig"