Pre Merge pull request !1097 from yinjiaming/kconfig

This commit is contained in:
yinjiaming 2023-09-12 11:36:48 +00:00 committed by Gitee
commit 350a38a260
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 85 additions and 56 deletions

93
Kconfig
View File

@ -1,5 +1,5 @@
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved.
# Copyright (c) 2020-2023 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
@ -247,11 +247,6 @@ config BACKTRACE_TYPE
default 5 if BACKTRACE_TYPE_5
default 6 if BACKTRACE_TYPE_6
config BACKTRACE_DEPTH
int "Backtrace depth"
default 15
depends on KERNEL_BACKTRACE
config KERNEL_CPPSUPPORT
bool "Enable C++ Support"
default n
@ -336,6 +331,25 @@ source "components/trace/Kconfig"
######################### config options of lms #########################
source "components/lms/Kconfig"
######################## config options of task ############################
config BASE_CORE_EXC_TSK_SWITCH
bool "Enable task switch"
default y
config BASE_CORE_TSK_MONITOR
bool "Enable task monitor"
default y
######################## config options of hardware interrupt ############################
config PLATFORM_HWI
bool "Enable takeover on interruption mode."
default y
config USE_SYSTEM_DEFINED_INTERRUPT
bool "Enable default interrupt of the OS on interruption mode."
default y
depends on PLATFORM_HWI
endmenu
######################### config options of compatibility ##############
@ -475,10 +489,6 @@ config SECURE_TRUSTZONE
default n
depends on ARCH_ARM
depends on ARCH_ARM_V8M
config SECURE_HEAP_SIZE
int "TrustZone Heap Size (bytes)"
default 2048
depends on SECURE_TRUSTZONE
config SECURE
bool "Enable Security"
default n
@ -536,3 +546,66 @@ config CC_STACKPROTECTOR_ALL
endchoice
endmenu
######################## config options of IPC ############################
menu "IPC"
config BASE_IPC_QUEUE
bool "Enable queue"
default y
config BASE_IPC_SEM
bool "Enable semaphore"
default y
config BASE_IPC_MUX
bool "Enable mutex"
default y
endmenu
######################## config options of time ############################
menu "Time"
config BASE_CORE_SWTMR
bool "Enable software timer"
default y
config BASE_CORE_SWTMR_ALIGN
bool "Enable software timer align"
default y
depends on BASE_CORE_SWTMR
config BASE_CORE_TICK_HW_TIME
bool "Enable External configuration item for timer tailoring."
default n
config BASE_CORE_TICK_WTIMER
bool "Enable base core tick wtimer."
default n
endmenu
######################## config options of memory ############################
menu "Memory"
config SYS_EXTERNAL_HEAP
bool "Enable external heap memory"
default y
help
Answer Y to enable external heap memory.
config MEM_MUL_POOL
bool "Enable memory pool"
default y
help
Answer Y to enable memory pool.
config MEM_FREE_BY_TASKID
bool "Enable memory free by taskid"
default y
config MEMORY_BESTFIT
bool "Enable memory bestfit"
default y
endmenu

View File

@ -1,5 +1,5 @@
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
# Copyright (c) 2020-2023 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
@ -34,17 +34,3 @@ config FS_LITTLEFS
select SUPPORT_LITTLEFS
help
Answer Y to enable LiteOS support Little FS filesystem.
if FS_LITTLEFS
config LFS_MAX_MOUNT_SIZE
int "Maximum number of mount points"
default 3
help
This is a global maximum number of mount points.
config LFS_MAX_OPEN_FILES
int "Maximum number of open files"
default 100
help
This is a global maximum number of open files.
endif # FS_LITTLEFS

View File

@ -1,5 +1,5 @@
# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
# Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved.
# Copyright (c) 2020-2023 Huawei Device Co., Ltd. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
@ -36,12 +36,6 @@ config FS_VFS
Answer Y to enable LiteOS support VFS.
if FS_VFS
config FS_LOCK_TIMEOUT
int "Filesystem global lock timeout value in tick. -1 for waiting forever"
default -1
help
The timeout value of getting filesystem lock in tick. -1 for waiting forever
config FS_SUPPORT_MOUNT_TARGET_RECURSIVE
bool "Mount target can be recursive"
default n

View File

@ -5,13 +5,6 @@ config KERNEL_LMS
help
Select y to build LiteOS with memory sanitizer.
config LMS_MAX_RECORD_POOL_NUM
int "Lms check pool max num"
default 50
depends on KERNEL_LMS
help
The Max num of lms check pool
config LMS_LOAD_CHECK
bool "Enable lms read check"
default y

View File

@ -19,9 +19,4 @@ config SHELL_PRIO
range 1 31
depends on SHELL
config SHELL_STACK_SIZE
int "Shell Task Stack Size"
default 4096
depends on SHELL
endmenu

View File

@ -18,13 +18,6 @@ config TRACE_FRAME_EVENT_COUNT
default n
depends on TRACE_MSG_EXTEND
config TRACE_FRAME_MAX_PARAMS
int "Record max params"
default 3
depends on KERNEL_TRACE
help
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
@ -39,11 +32,6 @@ config RECORDER_MODE_OFFLINE
endchoice
config TRACE_BUFFER_SIZE
int "Trace record buffer size"
default 2048
depends on RECORDER_MODE_OFFLINE
config TRACE_CLIENT_INTERACT
bool "Enable Trace Client Visualization and Control"
default n