From ee24396d7701bf347f64ee6d075e633c1eea332e Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 14 Feb 2023 01:11:48 +0800 Subject: [PATCH] drivers/note: Change DRIVER_NOTExxx to DRIVERS_NOTExxx follow other driver config style Signed-off-by: Xiang Xiao --- .../spresense/configs/nsh_trace/defconfig | 4 ++-- .../lc823450-xgevk/configs/elf/defconfig | 2 +- .../lc823450-xgevk/configs/ipl2/defconfig | 2 +- .../lc823450-xgevk/configs/knsh/defconfig | 2 +- .../lc823450-xgevk/configs/krndis/defconfig | 2 +- .../configs/posix_spawn/defconfig | 2 +- .../stm32f746-ws/configs/nsh/defconfig | 4 ++-- .../esp32c3-devkit/configs/watcher/defconfig | 2 +- .../k210/maix-bit/configs/smp2/defconfig | 2 +- boards/sim/sim/sim/configs/note/defconfig | 4 ++-- boards/sim/sim/sim/configs/segger/defconfig | 2 +- .../esp32-devkitc/configs/watcher/defconfig | 2 +- drivers/note/Kconfig | 24 +++++++++---------- drivers/segger/Kconfig | 4 ++-- 14 files changed, 29 insertions(+), 29 deletions(-) diff --git a/boards/arm/cxd56xx/spresense/configs/nsh_trace/defconfig b/boards/arm/cxd56xx/spresense/configs/nsh_trace/defconfig index 593f945ef4..7ba0883970 100644 --- a/boards/arm/cxd56xx/spresense/configs/nsh_trace/defconfig +++ b/boards/arm/cxd56xx/spresense/configs/nsh_trace/defconfig @@ -26,8 +26,8 @@ CONFIG_CXD56_SPI5=y CONFIG_CXD56_SPI=y CONFIG_DEBUG_FULLOPT=y CONFIG_DEBUG_SYMBOLS=y -CONFIG_DRIVER_NOTE=y -CONFIG_DRIVER_NOTECTL=y +CONFIG_DRIVERS_NOTE=y +CONFIG_DRIVERS_NOTECTL=y CONFIG_FS_PROCFS=y CONFIG_FS_PROCFS_REGISTER=y CONFIG_HAVE_CXX=y diff --git a/boards/arm/lc823450/lc823450-xgevk/configs/elf/defconfig b/boards/arm/lc823450/lc823450-xgevk/configs/elf/defconfig index 188cff11f5..9999274dc8 100644 --- a/boards/arm/lc823450/lc823450-xgevk/configs/elf/defconfig +++ b/boards/arm/lc823450/lc823450-xgevk/configs/elf/defconfig @@ -23,7 +23,7 @@ CONFIG_DEBUG_FULLOPT=y CONFIG_DEBUG_SYMBOLS=y CONFIG_DEV_ZERO=y CONFIG_DISABLE_POSIX_TIMERS=y -CONFIG_DRIVER_NOTE=y +CONFIG_DRIVERS_NOTE=y CONFIG_ELF=y CONFIG_EXAMPLES_ELF=y CONFIG_FS_PROCFS=y diff --git a/boards/arm/lc823450/lc823450-xgevk/configs/ipl2/defconfig b/boards/arm/lc823450/lc823450-xgevk/configs/ipl2/defconfig index 93a1aa1e1c..e94175a092 100644 --- a/boards/arm/lc823450/lc823450-xgevk/configs/ipl2/defconfig +++ b/boards/arm/lc823450/lc823450-xgevk/configs/ipl2/defconfig @@ -20,7 +20,7 @@ CONFIG_DEBUG_SYMBOLS=y CONFIG_DEV_ZERO=y CONFIG_DISABLE_MQUEUE=y CONFIG_DISABLE_POSIX_TIMERS=y -CONFIG_DRIVER_NOTE=y +CONFIG_DRIVERS_NOTE=y CONFIG_FAT_LCNAMES=y CONFIG_FAT_LFN=y CONFIG_FS_FAT=y diff --git a/boards/arm/lc823450/lc823450-xgevk/configs/knsh/defconfig b/boards/arm/lc823450/lc823450-xgevk/configs/knsh/defconfig index 6f746924fb..b82dc17dc9 100644 --- a/boards/arm/lc823450/lc823450-xgevk/configs/knsh/defconfig +++ b/boards/arm/lc823450/lc823450-xgevk/configs/knsh/defconfig @@ -28,7 +28,7 @@ CONFIG_DEBUG_FULLOPT=y CONFIG_DEBUG_SYMBOLS=y CONFIG_DEV_ZERO=y CONFIG_DISABLE_POSIX_TIMERS=y -CONFIG_DRIVER_NOTE=y +CONFIG_DRIVERS_NOTE=y CONFIG_FS_PROCFS=y CONFIG_HRT_TIMER=y CONFIG_I2C=y diff --git a/boards/arm/lc823450/lc823450-xgevk/configs/krndis/defconfig b/boards/arm/lc823450/lc823450-xgevk/configs/krndis/defconfig index 402d5681ec..07fa399688 100644 --- a/boards/arm/lc823450/lc823450-xgevk/configs/krndis/defconfig +++ b/boards/arm/lc823450/lc823450-xgevk/configs/krndis/defconfig @@ -36,7 +36,7 @@ CONFIG_DEV_URANDOM=y CONFIG_DEV_ZERO=y CONFIG_DISABLE_POSIX_TIMERS=y CONFIG_DRIVERS_AUDIO=y -CONFIG_DRIVER_NOTE=y +CONFIG_DRIVERS_NOTE=y CONFIG_DVFS=y CONFIG_ELF=y CONFIG_EXAMPLES_HELLO=m diff --git a/boards/arm/lc823450/lc823450-xgevk/configs/posix_spawn/defconfig b/boards/arm/lc823450/lc823450-xgevk/configs/posix_spawn/defconfig index 22292cdcb9..fad38727a5 100644 --- a/boards/arm/lc823450/lc823450-xgevk/configs/posix_spawn/defconfig +++ b/boards/arm/lc823450/lc823450-xgevk/configs/posix_spawn/defconfig @@ -22,7 +22,7 @@ CONFIG_DEBUG_FULLOPT=y CONFIG_DEBUG_SYMBOLS=y CONFIG_DEV_ZERO=y CONFIG_DISABLE_POSIX_TIMERS=y -CONFIG_DRIVER_NOTE=y +CONFIG_DRIVERS_NOTE=y CONFIG_ELF=y CONFIG_EXAMPLES_POSIXSPAWN=y CONFIG_FS_PROCFS=y diff --git a/boards/arm/stm32f7/stm32f746-ws/configs/nsh/defconfig b/boards/arm/stm32f7/stm32f746-ws/configs/nsh/defconfig index 73575b2482..da3ebe77f8 100644 --- a/boards/arm/stm32f7/stm32f746-ws/configs/nsh/defconfig +++ b/boards/arm/stm32f7/stm32f746-ws/configs/nsh/defconfig @@ -29,8 +29,8 @@ CONFIG_BOARD_LOOPSPERMSEC=43103 CONFIG_BUILTIN=y CONFIG_CDCACM=y CONFIG_DEBUG_SYMBOLS=y -CONFIG_DRIVER_NOTE=y -CONFIG_DRIVER_NOTERAM_BUFSIZE=512 +CONFIG_DRIVERS_NOTE=y +CONFIG_DRIVERS_NOTERAM_BUFSIZE=512 CONFIG_FAT_DMAMEMORY=y CONFIG_FAT_LCNAMES=y CONFIG_FAT_LFN=y diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/configs/watcher/defconfig b/boards/risc-v/esp32c3/esp32c3-devkit/configs/watcher/defconfig index 88f2db8ca6..fbdaf4366a 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit/configs/watcher/defconfig +++ b/boards/risc-v/esp32c3/esp32c3-devkit/configs/watcher/defconfig @@ -20,7 +20,7 @@ CONFIG_ARCH_STACKDUMP=y CONFIG_BOARD_LOOPSPERMSEC=15000 CONFIG_BUILTIN=y CONFIG_DEV_ZERO=y -CONFIG_DRIVER_NOTE=y +CONFIG_DRIVERS_NOTE=y CONFIG_ESP32C3_MWDT0=y CONFIG_ESP32C3_MWDT1=y CONFIG_EXAMPLES_WATCHER=y diff --git a/boards/risc-v/k210/maix-bit/configs/smp2/defconfig b/boards/risc-v/k210/maix-bit/configs/smp2/defconfig index 83d4eae8ee..f0a39ae05e 100644 --- a/boards/risc-v/k210/maix-bit/configs/smp2/defconfig +++ b/boards/risc-v/k210/maix-bit/configs/smp2/defconfig @@ -21,7 +21,7 @@ CONFIG_BUILTIN=y CONFIG_DEBUG_FULLOPT=y CONFIG_DEBUG_SYMBOLS=y CONFIG_DEV_ZERO=y -CONFIG_DRIVER_NOTE=y +CONFIG_DRIVERS_NOTE=y CONFIG_EXAMPLES_HELLO=y CONFIG_FS_PROCFS=y CONFIG_FS_PROCFS_REGISTER=y diff --git a/boards/sim/sim/sim/configs/note/defconfig b/boards/sim/sim/sim/configs/note/defconfig index 0e736f53a9..2ecd515dbd 100644 --- a/boards/sim/sim/sim/configs/note/defconfig +++ b/boards/sim/sim/sim/configs/note/defconfig @@ -16,8 +16,8 @@ CONFIG_BUILTIN=y CONFIG_DEBUG_SYMBOLS=y CONFIG_DEV_LOOP=y CONFIG_DEV_ZERO=y -CONFIG_DRIVER_NOTE=y -CONFIG_DRIVER_NOTELOG=y +CONFIG_DRIVERS_NOTE=y +CONFIG_DRIVERS_NOTELOG=y CONFIG_EXAMPLES_HELLO=y CONFIG_FS_BINFS=y CONFIG_FS_PROCFS=y diff --git a/boards/sim/sim/sim/configs/segger/defconfig b/boards/sim/sim/sim/configs/segger/defconfig index 3d9b665d87..a02b8feb33 100644 --- a/boards/sim/sim/sim/configs/segger/defconfig +++ b/boards/sim/sim/sim/configs/segger/defconfig @@ -20,7 +20,7 @@ CONFIG_DEBUG_SYMBOLS=y CONFIG_DEV_GPIO=y CONFIG_DEV_LOOP=y CONFIG_DEV_ZERO=y -CONFIG_DRIVER_NOTE=y +CONFIG_DRIVERS_NOTE=y CONFIG_EXAMPLES_GPIO=y CONFIG_EXAMPLES_HELLO=y CONFIG_FAT_LCNAMES=y diff --git a/boards/xtensa/esp32/esp32-devkitc/configs/watcher/defconfig b/boards/xtensa/esp32/esp32-devkitc/configs/watcher/defconfig index 791a9a5bdb..6656130d87 100644 --- a/boards/xtensa/esp32/esp32-devkitc/configs/watcher/defconfig +++ b/boards/xtensa/esp32/esp32-devkitc/configs/watcher/defconfig @@ -19,7 +19,7 @@ CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_XTENSA=y CONFIG_BOARD_LOOPSPERMSEC=16717 CONFIG_BUILTIN=y -CONFIG_DRIVER_NOTE=y +CONFIG_DRIVERS_NOTE=y CONFIG_ESP32_MWDT0=y CONFIG_ESP32_UART0=y CONFIG_EXAMPLES_WATCHER=y diff --git a/drivers/note/Kconfig b/drivers/note/Kconfig index c903283154..f1447347df 100644 --- a/drivers/note/Kconfig +++ b/drivers/note/Kconfig @@ -3,20 +3,20 @@ # see the file kconfig-language.txt in the NuttX tools repository. # -config DRIVER_NOTE +config DRIVERS_NOTE bool "Note Driver Support" depends on SCHED_INSTRUMENTATION default n -if DRIVER_NOTE +if DRIVERS_NOTE -config DRIVER_NOTE_MAX +config DRIVERS_NOTE_MAX int "Maximum number of sched_note drivers" default 1 ---help--- sched_note supports the maximum number of drivers -config DRIVER_NOTE_TASKNAME_BUFSIZE +config DRIVERS_NOTE_TASKNAME_BUFSIZE int "Note task name buffer size" default 256 if TASK_NAME_SIZE > 0 default 0 if TASK_NAME_SIZE = 0 @@ -28,7 +28,7 @@ config DRIVER_NOTE_TASKNAME_BUFSIZE If 0 is specified, this feature is disabled and trace dump shows only the name of the newly created task. -config DRIVER_NOTECTL +config DRIVERS_NOTECTL bool "Scheduler instrumentation filter control driver" default n depends on SCHED_INSTRUMENTATION_FILTER @@ -36,7 +36,7 @@ config DRIVER_NOTECTL If this option is selected, the instrumentation filter control device /dev/notectl is provided. -config DRIVER_NOTERAM +config DRIVERS_NOTERAM bool "Note RAM driver" default y ---help--- @@ -63,15 +63,15 @@ config DRIVER_NOTERAM sched_note_get() causes several additional entries to be added from the note buffer in order to remove one entry. -if DRIVER_NOTERAM +if DRIVERS_NOTERAM -config DRIVER_NOTERAM_BUFSIZE +config DRIVERS_NOTERAM_BUFSIZE int "Note RAM buffer size" default 2048 ---help--- The size of the in-memory, circular instrumentation buffer (in bytes). -config DRIVER_NOTERAM_DEFAULT_NOOVERWRITE +config DRIVERS_NOTERAM_DEFAULT_NOOVERWRITE bool "Disable overwrite by default" default n ---help--- @@ -79,11 +79,11 @@ config DRIVER_NOTERAM_DEFAULT_NOOVERWRITE is full by default. This is useful to keep instrumentation data of the beginning of a system boot. -endif # DRIVER_NOTERAM +endif # DRIVERS_NOTERAM -config DRIVER_NOTELOG +config DRIVERS_NOTELOG bool "Note syslog driver" ---help--- The note driver output to syslog. -endif # DRIVER_NOTE +endif # DRIVERS_NOTE diff --git a/drivers/segger/Kconfig b/drivers/segger/Kconfig index 535b22ffee..7e5ac0c74a 100644 --- a/drivers/segger/Kconfig +++ b/drivers/segger/Kconfig @@ -94,7 +94,7 @@ config SYSLOG_RTT ---help--- Use Segger J-Link RTT as a SYSLOG output device. -if DRIVER_NOTE +if DRIVERS_NOTE config SEGGER_SYSVIEW bool "Note SEGGER SystemView driver" select SEGGER_RTT @@ -106,7 +106,7 @@ config SEGGER_SYSVIEW systems comprising multiple threads and interrupts. SystemView can ensure unintended interactions and resource conflicts. -endif # DRIVER_NOTE +endif # DRIVERS_NOTE if SEGGER_SYSVIEW