瀏覽代碼

fix: warnings generated by Kconfig.

maosql 2 周之前
父節點
當前提交
9567564e86

+ 3 - 3
components/dfs/Kconfig

@@ -34,7 +34,7 @@ endif
         int "The maximal number of opened files"
         int "The maximal number of opened files"
         default 16
         default 16
 
 
-    choice
+    choice RT_USING_DFS_VERSION
         prompt "The version of DFS"
         prompt "The version of DFS"
         default RT_USING_DFS_V1
         default RT_USING_DFS_V1
         default RT_USING_DFS_V2 if RT_USING_SMART
         default RT_USING_DFS_V2 if RT_USING_SMART
@@ -74,7 +74,7 @@ endif
             bool "Using RT_DFS_ELM_WORD_ACCESS"
             bool "Using RT_DFS_ELM_WORD_ACCESS"
             default y
             default y
 
 
-        choice
+        choice RT_DFS_ELM_USE_LFN_NAME
             prompt "Support long file name"
             prompt "Support long file name"
             default RT_DFS_ELM_USE_LFN_3
             default RT_DFS_ELM_USE_LFN_3
 
 
@@ -98,7 +98,7 @@ endif
             default 2 if RT_DFS_ELM_USE_LFN_2
             default 2 if RT_DFS_ELM_USE_LFN_2
             default 3 if RT_DFS_ELM_USE_LFN_3
             default 3 if RT_DFS_ELM_USE_LFN_3
 
 
-        choice
+        choice RT_DFS_ELM_LFN_UNICODE_NAME
             prompt "Support unicode for long file name"
             prompt "Support unicode for long file name"
             default RT_DFS_ELM_LFN_UNICODE_0
             default RT_DFS_ELM_LFN_UNICODE_0
 
 

+ 2 - 2
components/drivers/serial/Kconfig

@@ -5,7 +5,7 @@ menuconfig RT_USING_SERIAL
     default y
     default y
 
 
     if RT_USING_SERIAL
     if RT_USING_SERIAL
-        choice
+        choice RT_USING_SERIAL_VERSION
             prompt "Choice Serial version"
             prompt "Choice Serial version"
             default RT_USING_SERIAL_V1
             default RT_USING_SERIAL_V1
             config RT_USING_SERIAL_V1
             config RT_USING_SERIAL_V1
@@ -14,7 +14,7 @@ menuconfig RT_USING_SERIAL
                 bool "RT_USING_SERIAL_V2"
                 bool "RT_USING_SERIAL_V2"
         endchoice
         endchoice
 
 
-        choice
+        choice RT_USING_SERIAL_MODE
             prompt "Choice Serial version"
             prompt "Choice Serial version"
             depends on RT_USING_SERIAL_V2
             depends on RT_USING_SERIAL_V2
             default RT_SERIAL_BUF_STRATEGY_OVERWRITE
             default RT_SERIAL_BUF_STRATEGY_OVERWRITE

+ 4 - 4
components/drivers/usb/cherryusb/Kconfig

@@ -10,7 +10,7 @@ if CHERRYUSB
         default n
         default n
 
 
     if CHERRYUSB_DEVICE
     if CHERRYUSB_DEVICE
-        choice
+        choice CHERRYUSB_DEVICE_SPEED
             prompt "Select usb device speed"
             prompt "Select usb device speed"
             default CHERRYUSB_DEVICE_SPEED_FS
             default CHERRYUSB_DEVICE_SPEED_FS
             config CHERRYUSB_DEVICE_SPEED_FS
             config CHERRYUSB_DEVICE_SPEED_FS
@@ -21,7 +21,7 @@ if CHERRYUSB
                 bool "AUTO"
                 bool "AUTO"
         endchoice
         endchoice
 
 
-        choice
+        choice CHERRYUSB_DEVICE_IP
             prompt "Select usb device ip, and some ip need config in usb_config.h, please check"
             prompt "Select usb device ip, and some ip need config in usb_config.h, please check"
             default CHERRYUSB_DEVICE_CUSTOM
             default CHERRYUSB_DEVICE_CUSTOM
             config CHERRYUSB_DEVICE_CUSTOM
             config CHERRYUSB_DEVICE_CUSTOM
@@ -158,7 +158,7 @@ if CHERRYUSB
             prompt "Enable usb cdc ecm device with lwip for lan"
             prompt "Enable usb cdc ecm device with lwip for lan"
             default n
             default n
 
 
-        choice
+        choice CHERRYUSB_DEVICE_TEMPLATE
             prompt "Select usb device template, please select class driver first"
             prompt "Select usb device template, please select class driver first"
             default CHERRYUSB_DEVICE_TEMPLATE_NONE
             default CHERRYUSB_DEVICE_TEMPLATE_NONE
             config CHERRYUSB_DEVICE_TEMPLATE_NONE
             config CHERRYUSB_DEVICE_TEMPLATE_NONE
@@ -235,7 +235,7 @@ if CHERRYUSB
         default n
         default n
 
 
     if CHERRYUSB_HOST
     if CHERRYUSB_HOST
-        choice
+        choice CHERRYUSB_HOST_IP
             prompt "Select usb host ip, and some ip need config in usb_config.h, please check"
             prompt "Select usb host ip, and some ip need config in usb_config.h, please check"
             default CHERRYUSB_HOST_CUSTOM
             default CHERRYUSB_HOST_CUSTOM
             config CHERRYUSB_HOST_CUSTOM
             config CHERRYUSB_HOST_CUSTOM

+ 1 - 1
components/drivers/virtio/Kconfig

@@ -3,7 +3,7 @@ menuconfig RT_USING_VIRTIO
     default n
     default n
 
 
     if RT_USING_VIRTIO
     if RT_USING_VIRTIO
-        choice
+        choice RT_USING_VIRTIO_VERSION
             prompt "VirtIO Version"
             prompt "VirtIO Version"
             default RT_USING_VIRTIO10
             default RT_USING_VIRTIO10
 
 

+ 1 - 1
components/legacy/usb/Kconfig

@@ -50,7 +50,7 @@ menu "Using USB legacy version"
             config RT_USB_DEVICE_COMPOSITE
             config RT_USB_DEVICE_COMPOSITE
                 bool "Enable composite device"
                 bool "Enable composite device"
                 default n
                 default n
-                choice
+                choice RT_USING_COMPOSITE_DEVICE
                     prompt "Device type"
                     prompt "Device type"
                     default _RT_USB_DEVICE_NONE
                     default _RT_USB_DEVICE_NONE
                     depends on !RT_USB_DEVICE_COMPOSITE
                     depends on !RT_USB_DEVICE_COMPOSITE

+ 1 - 1
components/net/lwip/Kconfig

@@ -13,7 +13,7 @@ if RT_USING_LWIP
             If don't select this option, both local version and upstream
             If don't select this option, both local version and upstream
             version can be selected. If select this option, only local version
             version can be selected. If select this option, only local version
             can be selected.
             can be selected.
-    choice
+    choice RT_USING_LWIP_VERSION
         prompt "lwIP version"
         prompt "lwIP version"
         default RT_USING_LWIP203
         default RT_USING_LWIP203
         help
         help

+ 2 - 2
components/utilities/Kconfig

@@ -21,7 +21,7 @@ menuconfig RT_USING_ULOG
 
 
     if RT_USING_ULOG
     if RT_USING_ULOG
         if !ULOG_USING_SYSLOG
         if !ULOG_USING_SYSLOG
-            choice
+            choice ULOG_OUTPUT_LOG_LEVEL
                 prompt "The static output log level."
                 prompt "The static output log level."
                 default ULOG_OUTPUT_LVL_D
                 default ULOG_OUTPUT_LVL_D
                 help
                 help
@@ -42,7 +42,7 @@ menuconfig RT_USING_ULOG
         endif
         endif
 
 
         if ULOG_USING_SYSLOG
         if ULOG_USING_SYSLOG
-            choice
+            choice ULOG_OUTPUT_LOG_LEVEL
                 prompt "The static output log level."
                 prompt "The static output log level."
                 default ULOG_OUTPUT_LVL_DEBUG
                 default ULOG_OUTPUT_LVL_DEBUG
                 help
                 help

+ 1 - 1
components/utilities/rt-link/Kconfig

@@ -4,7 +4,7 @@ menuconfig RT_USING_RT_LINK
     default n
     default n
 
 
 if RT_USING_RT_LINK
 if RT_USING_RT_LINK
-    choice
+    choice RT_LINK_USING_CRC
         prompt"use hw crc device or not"
         prompt"use hw crc device or not"
         default RT_LINK_USING_SF_CRC
         default RT_LINK_USING_SF_CRC
 
 

+ 1 - 1
libcpu/Kconfig

@@ -228,7 +228,7 @@ config ARCH_RISCV_VECTOR
     bool
     bool
 
 
     if ARCH_RISCV_VECTOR
     if ARCH_RISCV_VECTOR
-        choice
+        choice ARCH_VECTOR_VLEN
             prompt "RISCV Vector Vlen"
             prompt "RISCV Vector Vlen"
             default ARCH_VECTOR_VLEN_128
             default ARCH_VECTOR_VLEN_128
 
 

+ 4 - 4
src/Kconfig

@@ -55,7 +55,7 @@ config RT_USING_AMP
     bool "Enable AMP (Asymmetric Multi-Processing)"
     bool "Enable AMP (Asymmetric Multi-Processing)"
     default n
     default n
     if RT_USING_AMP
     if RT_USING_AMP
-        choice
+        choice RT_USING_AMP_ROLE
             prompt "Select the AMP role"
             prompt "Select the AMP role"
             default RT_AMP_SLAVE
             default RT_AMP_SLAVE
 
 
@@ -89,7 +89,7 @@ config RT_ALIGN_SIZE
     help
     help
         Alignment size for CPU architecture data access
         Alignment size for CPU architecture data access
 
 
-choice
+choice RT_THREAD_PRIORITY_VAL_MAX
     prompt "The maximal level value of priority of thread"
     prompt "The maximal level value of priority of thread"
     default RT_THREAD_PRIORITY_32
     default RT_THREAD_PRIORITY_32
 
 
@@ -314,7 +314,7 @@ menu "Memory Management"
         default n
         default n
 
 
         if RT_USING_MEMHEAP
         if RT_USING_MEMHEAP
-            choice
+            choice RT_MEMHEAP_MODE
                 prompt "Memheap memory allocation mode"
                 prompt "Memheap memory allocation mode"
                 default RT_MEMHEAP_FAST_MODE
                 default RT_MEMHEAP_FAST_MODE
 
 
@@ -332,7 +332,7 @@ menu "Memory Management"
             endchoice
             endchoice
         endif
         endif
 
 
-    choice
+    choice RT_USING_HEAP_TYPE
         prompt "System Heap Memory Management"
         prompt "System Heap Memory Management"
         default RT_USING_SMALL_MEM_AS_HEAP
         default RT_USING_SMALL_MEM_AS_HEAP