Kconfig 5.1 KB
Newer Older
W
wenjun 已提交
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
menu "Kernel"
config KERNEL_SMP
    bool "Enable Kernel SMP"
    default n
    help
      This option will enable smp support of LiteOS.

config KERNEL_SMP_CORE_NUM
    int "Muti-processing Core Numbers"
    default 2
    depends on KERNEL_SMP
    help
      This represents the number of muti-processing cores.

config KERNEL_SMP_LOCKDEP
    bool "Enable Spinlock Lockdep Check"
    default n
    depends on KERNEL_SMP
    help
      This option will enable spinlock lockdep check.

config KERNEL_SMP_TASK_SYNC
    bool "Enable Synchronized Task Operations"
    default n
    depends on KERNEL_SMP
    help
      This option will enable task synchronized operate task across cores.

config KERNEL_SCHED_STATISTICS
    bool "Enable Scheduler statistics"
    default n
    depends on KERNEL_SMP
    help
      This option will enable schedulder statistics.

Y
YOUR_NAME 已提交
36 37 38 39 40 41 42 43 44 45 46 47 48
config KERNEL_MMU
    bool "Enable MMU"
    default y
    help
      This option will enable mmu.

config KERNEL_VM
    bool "Enable VM"
    default y
    depends on KERNEL_MMU
    help
      This option will enable vmm, pmm, page fault, etc.

Y
YOUR_NAME 已提交
49 50 51
config KERNEL_SYSCALL
    bool "Enable Syscall"
    default y
Y
YOUR_NAME 已提交
52
    depends on KERNEL_VM
Y
YOUR_NAME 已提交
53 54 55
    help
      This option will enable syscall.

W
wenjun 已提交
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
config KERNEL_EXTKERNEL
    bool "Enable Extend Kernel"
    default y
    help
      This option will enable extend Kernel of LiteOS.  Extend kernel include
      cppsupport, cpup, and dynload. You can select one or some
      of them.

config KERNEL_CPPSUPPORT
    bool "C++ Support"
    default y
    depends on KERNEL_EXTKERNEL
    help
      If you wish to build LiteOS with support for C++.

config KERNEL_CPUP
    bool "Enable Cpup"
    default y
    depends on KERNEL_EXTKERNEL
    help
      If you wish to build LiteOS with support for cpup.

config CPUP_INCLUDE_IRQ
    bool "Enable Cpup include irq"
    default y
    depends on KERNEL_CPUP
    help
      If you wish to include irq usage for cpup.

config KERNEL_DYNLOAD
    bool "Enable Dynamic Load Feature"
    default y
Y
YOUR_NAME 已提交
88
    depends on KERNEL_EXTKERNEL && KERNEL_VM && KERNEL_SYSCALL
W
wenjun 已提交
89 90 91
    help
      If you wish to build LiteOS with support for dynamic load.

Z
zhushengle 已提交
92 93 94 95 96 97 98
config KERNEL_PM
    bool "Enable Power Management"
    default y
    depends on KERNEL_EXTKERNEL
    help
      If you wish to build LiteOS with support for power management.

W
wenjun 已提交
99 100 101 102 103 104 105 106 107 108
config ASLR
    bool "Enable Address Space Layout Randomization"
    default n
    depends on KERNEL_DYNLOAD && HW_RANDOM_ENABLE
    help
      If you wish to enable ASLR for user aspace.

config KERNEL_VDSO
    bool "Enable VDSO Feature"
    default n
Y
YOUR_NAME 已提交
109
    depends on KERNEL_EXTKERNEL && KERNEL_VM && KERNEL_SYSCALL
W
wenjun 已提交
110 111 112
    help
      If you wish to speed up some system calls.

L
LiteOS2021 已提交
113 114 115 116 117
config KERNEL_HOOK
    bool "Enable Hook Feature"
    default n
    depends on KERNEL_EXTKERNEL && DEBUG_VERSION

W
wenjun 已提交
118 119 120
config KERNEL_TRACE
    bool "Enable Trace Feature"
    default n
L
LiteOS2021 已提交
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
    depends on KERNEL_HOOK

config TRACE_MSG_EXTEND
    bool "Enable Record more extended content"
    default n
    depends on KERNEL_TRACE

config TRACE_FRAME_CORE_MSG
    bool "Record cpuid, hardware interrupt status, task lock status"
    default n
    depends on TRACE_MSG_EXTEND

config TRACE_FRAME_EVENT_COUNT
    bool "Record event count, which indicate the sequence of happend events"
    default n
    depends on TRACE_MSG_EXTEND

config TRACE_FRAME_MAX_PARAMS
    int "Record max params"
    default 3
    depends on KERNEL_TRACE
W
wenjun 已提交
142
    help
L
LiteOS2021 已提交
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
      Make sure the max value is bigger than the number defined by each #MODULE#_#TYPE#_PARMAS in los_trace.h, e.g. TASK_SWITCH_PARAMS

choice
    prompt "Trace work mode"
    default RECORDER_MODE_OFFLINE
    depends on KERNEL_TRACE

config RECORDER_MODE_ONLINE
    bool "Online mode"
    select TRACE_CLIENT_INTERACT

config RECORDER_MODE_OFFLINE
    bool "Offline mode"

endchoice

config TRACE_BUFFER_SIZE
    int "Trace record buffer size"
    default 10000

config TRACE_CLIENT_INTERACT
    bool "Enable Trace Client Visualization and Control"
    default n
    depends on KERNEL_TRACE

choice
    prompt "Trace Pipeline for Data Transmission"
    depends on TRACE_CLIENT_INTERACT

config TRACE_PIPELINE_SERIAL
    bool "Via Serial"

endchoice

choice
    prompt "Trace Control"
    default TRACE_CONTROL_VIA_SHELL
    depends on TRACE_CLIENT_INTERACT
    help
      If you wish to control Trace's start/stop etc.,dynamically by Trace Client.

config TRACE_CONTROL_VIA_SHELL
    bool "Via Shell"
    select LOSCFG_SHELL

config TRACE_CONTROL_AGENT
    bool "Via Trace Agent Task"

config TRACE_NO_CONTROL
    bool "No Control"

endchoice
W
wenjun 已提交
195

M
mamingshuai 已提交
196 197 198
config KERNEL_SHM
    bool "Enable Shared Memory"
    default y
Y
YOUR_NAME 已提交
199
    depends on KERNEL_EXTKERNEL && KERNEL_VM && KERNEL_SYSCALL
M
mamingshuai 已提交
200 201 202
    help
      Answer Y to enable LiteOS support shared memory.

W
wenjun 已提交
203 204 205
config KERNEL_LITEIPC
    bool "Enable liteipc"
    default y
Y
YOUR_NAME 已提交
206
    depends on KERNEL_EXTKERNEL && KERNEL_VM
W
wenjun 已提交
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
    help
      Answer Y to enable LiteOS support liteipc.

config KERNEL_PIPE
    bool "Enable pipes"
    default y
    depends on KERNEL_EXTKERNEL
    help
      Answer Y to enable LiteOS support pipes.

config BASE_CORE_HILOG
    bool "Enable Hilog"
    default y
    help
      If you wish to include hilog.

endmenu