This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new f930b4f6f5 Fix Kconfig style
f930b4f6f5 is described below
commit f930b4f6f52919516874093cfaef38cff35c4452
Author: simbit18 <[email protected]>
AuthorDate: Tue Jun 20 15:25:59 2023 +0200
Fix Kconfig style
Remove TABs from Kconfig files
Replace help => ---help---
Add comments
---
Kconfig | 22 +++++++++++-----------
arch/arm/Kconfig | 6 +++---
arch/arm/src/a1x/Kconfig | 2 +-
arch/xtensa/src/esp32s3/Kconfig | 15 +++++++--------
boards/risc-v/esp32c3/common/Kconfig | 6 +++---
boards/xtensa/esp32s3/esp32s3-devkit/Kconfig | 28 ++++++++++++++--------------
libs/libc/misc/Kconfig | 2 +-
7 files changed, 40 insertions(+), 41 deletions(-)
diff --git a/Kconfig b/Kconfig
index 5f1b11379b..fc271e583e 100644
--- a/Kconfig
+++ b/Kconfig
@@ -118,7 +118,7 @@ config HOST_WINDOWS
config HOST_OTHER
bool "Other"
-endchoice
+endchoice # Build Host Platform
config TOOLCHAIN_WINDOWS
bool
@@ -175,7 +175,7 @@ config WINDOWS_OTHER
Build natively in another POSIX-like environment. Additional
support may be necessary
-endchoice
+endchoice # Windows Build Environment
config WINDOWS_MKLINK
bool "Use mklink"
@@ -245,13 +245,13 @@ config APPS_DIR
or to set up include file paths.
config BASE_DEFCONFIG
- string "Base Configuration"
- default ""
- ---help---
- This will be automatically be updated by the
configuration
- script. This is the base configuration file that was
used to create the
- current configuration. It is useful for getting the
current configuration
- on runtime.
+ string "Base Configuration"
+ default ""
+ ---help---
+ This will be automatically be updated by the configuration
+ script. This is the base configuration file that was used to
create the
+ current configuration. It is useful for getting the current
configuration
+ on runtime.
config BUILD_LOADABLE
bool
@@ -407,7 +407,7 @@ config UIMAGE_ENTRY_POINT
hex "uImage entry point"
default 0x0
-endif
+endif # UBOOT_UIMAGE
menuconfig DFU_BINARY
bool "DFU binary format"
@@ -426,7 +426,7 @@ config DFU_VID
config DFU_PID
hex "PID to use for DFU image"
-endif
+endif # DFU_BINARY
endmenu # Binary Output Formats
menu "Customize Header Files"
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f57151099a..480c9bbc05 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -46,7 +46,7 @@ config ARM_TOOLCHAIN_ARMCLANG
bool "ARM Compiler Clang toolchain"
select ARCH_TOOLCHAIN_CLANG
-endchoice
+endchoice # ARM Toolchain Selection
choice
prompt "ARM MCU selection"
@@ -625,7 +625,7 @@ config ARCH_CHIP_ARM_CUSTOM
---help---
Select this option if there is no directory for the chip under
arch/arm/src/.
-endchoice
+endchoice # ARM MCU selection
config ARCH_ARM7TDMI
bool
@@ -1322,7 +1322,7 @@ config UNWINDER_ARM
the performance is not affected. Currently, this feature
only works with EABI compilers.
-endchoice
+endchoice # Choose ARM unwinder
endif
diff --git a/arch/arm/src/a1x/Kconfig b/arch/arm/src/a1x/Kconfig
index 5351d509d4..4e6681b86a 100644
--- a/arch/arm/src/a1x/Kconfig
+++ b/arch/arm/src/a1x/Kconfig
@@ -14,7 +14,7 @@ choice
config ARCH_CHIP_A10
bool "A10"
-endchoice
+endchoice # Allwinner A1X Chip Selection
menu "Allwinner A1X Peripheral Support"
diff --git a/arch/xtensa/src/esp32s3/Kconfig b/arch/xtensa/src/esp32s3/Kconfig
index 360ed9fd88..caafe4be11 100644
--- a/arch/xtensa/src/esp32s3/Kconfig
+++ b/arch/xtensa/src/esp32s3/Kconfig
@@ -117,7 +117,7 @@ config ESP32S3_INSTRUCTION_CACHE_LINE_16B
config ESP32S3_INSTRUCTION_CACHE_LINE_32B
bool "32 Bytes"
-endchoice
+endchoice # ESP32S3_INSTRUCTION_CACHE_LINE_SIZE
config ESP32S3_INSTRUCTION_CACHE_LINE_SIZE
int
@@ -168,7 +168,7 @@ config ESP32S3_DATA_CACHE_4WAYS
config ESP32S3_DATA_CACHE_8WAYS
bool "8 ways"
-endchoice
+endchoice # ESP32S3_DCACHE_ASSOCIATED_WAYS
config ESP32S3_DCACHE_ASSOCIATED_WAYS
int
@@ -191,7 +191,7 @@ config ESP32S3_DATA_CACHE_LINE_32B
config ESP32S3_DATA_CACHE_LINE_64B
bool "64 Bytes"
-endchoice
+endchoice # ESP32S3_DATA_CACHE_LINE_SIZE
config ESP32S3_DATA_CACHE_LINE_SIZE
int
@@ -383,7 +383,6 @@ config ESP32S3_LEDC
---help---
Enable support to PWM on ESP32S3 using LEDC peripheral.
-
config ESP32S3_USBSERIAL
bool "USB-Serial Driver"
default n
@@ -1070,7 +1069,7 @@ endchoice
config ESP32S3_SPI_FLASH_DONT_USE_ROM_CODE
bool "Don't use SPI flash driver in ROM"
default n
- help
+ ---help---
Use source code for SPI flash driver instead of functions
in ROM.
@@ -1078,7 +1077,7 @@ config ESP32S3S_SPI_FLASH_USE_32BIT_ADDRESS
bool "SPI flash uses 32-bit address"
default n
select ESP32S3_SPI_FLASH_DONT_USE_ROM_CODE
- help
+ ---help---
SPI flash driver in ROM only support 24-bit address access,
if select the option, it will force to use source code instead
of functions in ROM, so that SPI flash driver can access full
@@ -1124,7 +1123,7 @@ config ESP32S3_OTA_SCRATCH_DEVPATH
string "Scratch partition device path"
default "/dev/otascratch"
-endif
+endif # ESP32S3_HAVE_OTA_PARTITION
if ESP32S3_SPIFLASH
@@ -1364,7 +1363,7 @@ config ESP32S3_USER_IMAGE_OFFSET
---help---
Offset in SPI Flash for flashing the User application firmware
image.
-endif
+endif # BUILD_PROTECTED
endmenu # Application Image Configuration
diff --git a/boards/risc-v/esp32c3/common/Kconfig
b/boards/risc-v/esp32c3/common/Kconfig
index 7dc7744241..bf9503f547 100644
--- a/boards/risc-v/esp32c3/common/Kconfig
+++ b/boards/risc-v/esp32c3/common/Kconfig
@@ -36,8 +36,8 @@ config ESP32C3_SPIFLASH_NXFFS
select FS_NXFFS
depends on !ESP32C3_SECURE_FLASH_ENC_ENABLED
- comment "NXFFS not supported with Flash Encryption"
- depends on ESP32C3_SECURE_FLASH_ENC_ENABLED
+comment "NXFFS not supported with Flash Encryption"
+ depends on ESP32C3_SECURE_FLASH_ENC_ENABLED
config ESP32C3_SPIFLASH_SPIFFS
bool "SPIFFS"
@@ -54,7 +54,7 @@ config ESP32C3_SPIFLASH_LITTLEFS
config ESP32C3_SPIFLASH_MTD_CONFIG
bool "Non-volatile storage"
-endchoice
+endchoice # ESP32C3_SPIFLASH_FS
config ESP32C3_SPIFLASH_FS_MOUNT_PT
string "File-system Mount Point"
diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/Kconfig
b/boards/xtensa/esp32s3/esp32s3-devkit/Kconfig
index 6dfe6e5805..70f655aec2 100644
--- a/boards/xtensa/esp32s3/esp32s3-devkit/Kconfig
+++ b/boards/xtensa/esp32s3/esp32s3-devkit/Kconfig
@@ -30,23 +30,23 @@ choice ESP32S3_SPIFLASH_FS
bring-up.
If not selected, the MTD will be registered as a device node on
/dev.
- config ESP32S3_SPIFLASH_SMARTFS
- bool "SmartFS"
- select FS_SMARTFS
- select MTD_SMART
+config ESP32S3_SPIFLASH_SMARTFS
+ bool "SmartFS"
+ select FS_SMARTFS
+ select MTD_SMART
- config ESP32S3_SPIFLASH_NXFFS
- bool "NXFFS"
- select FS_NXFFS
+config ESP32S3_SPIFLASH_NXFFS
+ bool "NXFFS"
+ select FS_NXFFS
- config ESP32S3_SPIFLASH_SPIFFS
- bool "SPIFFS"
- select FS_SPIFFS
+config ESP32S3_SPIFLASH_SPIFFS
+ bool "SPIFFS"
+ select FS_SPIFFS
- config ESP32S3_SPIFLASH_LITTLEFS
- bool "LittleFS"
- select FS_LITTLEFS
+config ESP32S3_SPIFLASH_LITTLEFS
+ bool "LittleFS"
+ select FS_LITTLEFS
-endchoice
+endchoice # ESP32S3_SPIFLASH_FS
endif # ARCH_BOARD_ESP32S3_DEVKIT
diff --git a/libs/libc/misc/Kconfig b/libs/libc/misc/Kconfig
index 8415135437..ba8d50a0ee 100644
--- a/libs/libc/misc/Kconfig
+++ b/libs/libc/misc/Kconfig
@@ -72,7 +72,7 @@ config FDCHECK
bool "Enable fdcheck"
default n
depends on SCHED_HAVE_PARENT
- ---help---
+ ---help---
Enable the fdcheck support
config LIBC_FTOK_VFS_PATH