You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2021/12/19 23:11:07 UTC

[incubator-nuttx] branch master updated: Kconfig: fix non-string default values uniformity

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 67d8a82  Kconfig: fix non-string default values uniformity
67d8a82 is described below

commit 67d8a823936da608a8af0a19ce4091de45272a31
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Tue Dec 14 09:39:37 2021 +0200

    Kconfig: fix non-string default values uniformity
    
    Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
 arch/risc-v/src/esp32c3/Kconfig | 12 ++++++------
 arch/xtensa/src/esp32/Kconfig   | 18 +++++++++---------
 arch/xtensa/src/esp32s2/Kconfig | 12 ++++++------
 drivers/usbdev/Kconfig          |  2 +-
 libs/libc/machine/Kconfig       |  2 +-
 5 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/arch/risc-v/src/esp32c3/Kconfig b/arch/risc-v/src/esp32c3/Kconfig
index 7bf6b74..2cc5364 100644
--- a/arch/risc-v/src/esp32c3/Kconfig
+++ b/arch/risc-v/src/esp32c3/Kconfig
@@ -885,7 +885,7 @@ comment "Application Image OTA Update support"
 
 config ESP32C3_OTA_PRIMARY_SLOT_OFFSET
 	hex "Application image primary slot offset"
-	default "0x10000"
+	default 0x10000
 
 config ESP32C3_OTA_PRIMARY_SLOT_DEVPATH
 	string "Application image primary slot device path"
@@ -893,7 +893,7 @@ config ESP32C3_OTA_PRIMARY_SLOT_DEVPATH
 
 config ESP32C3_OTA_SECONDARY_SLOT_OFFSET
 	hex "Application image secondary slot offset"
-	default "0x110000"
+	default 0x110000
 
 config ESP32C3_OTA_SECONDARY_SLOT_DEVPATH
 	string "Application image secondary slot device path"
@@ -901,15 +901,15 @@ config ESP32C3_OTA_SECONDARY_SLOT_DEVPATH
 
 config ESP32C3_OTA_SLOT_SIZE
 	hex "Application image slot size (in bytes)"
-	default "0x100000"
+	default 0x100000
 
 config ESP32C3_OTA_SCRATCH_OFFSET
 	hex "Scratch partition offset"
-	default "0x210000"
+	default 0x210000
 
 config ESP32C3_OTA_SCRATCH_SIZE
 	hex "Scratch partition size"
-	default "0x40000"
+	default 0x40000
 
 config ESP32C3_OTA_SCRATCH_DEVPATH
 	string "Scratch partition device path"
@@ -1086,7 +1086,7 @@ config ESP32C3_APP_MCUBOOT_HEADER_SIZE
 
 config ESP32C3_PARTITION_TABLE_OFFSET
 	hex "Partition Table offset"
-	default "0x8000"
+	default 0x8000
 	depends on ESP32C3_APP_FORMAT_LEGACY
 
 endmenu # Application Image Configuration
diff --git a/arch/xtensa/src/esp32/Kconfig b/arch/xtensa/src/esp32/Kconfig
index 93bd718..207c9c2 100644
--- a/arch/xtensa/src/esp32/Kconfig
+++ b/arch/xtensa/src/esp32/Kconfig
@@ -853,7 +853,7 @@ comment "Application Image OTA Update support"
 
 config ESP32_OTA_PRIMARY_SLOT_OFFSET
 	hex "Application image primary slot offset"
-	default "0x10000"
+	default 0x10000
 
 config ESP32_OTA_PRIMARY_SLOT_DEVPATH
 	string "Application image primary slot device path"
@@ -861,7 +861,7 @@ config ESP32_OTA_PRIMARY_SLOT_DEVPATH
 
 config ESP32_OTA_SECONDARY_SLOT_OFFSET
 	hex "Application image secondary slot offset"
-	default "0x110000"
+	default 0x110000
 
 config ESP32_OTA_SECONDARY_SLOT_DEVPATH
 	string "Application image secondary slot device path"
@@ -869,15 +869,15 @@ config ESP32_OTA_SECONDARY_SLOT_DEVPATH
 
 config ESP32_OTA_SLOT_SIZE
 	hex "Application image slot size (in bytes)"
-	default "0x100000"
+	default 0x100000
 
 config ESP32_OTA_SCRATCH_OFFSET
 	hex "Scratch partition offset"
-	default "0x210000"
+	default 0x210000
 
 config ESP32_OTA_SCRATCH_SIZE
 	hex "Scratch partition size"
-	default "0x40000"
+	default 0x40000
 
 config ESP32_OTA_SCRATCH_DEVPATH
 	string "Scratch partition device path"
@@ -969,7 +969,7 @@ endchoice # ESP32_SPIRAM_SPEED
 config ESP32_SPIRAM_BOOT_INIT
 	bool "Initialize SPI RAM during startup"
 	depends on ESP32_SPIRAM
-	default "y"
+	default y
 	---help---
 		If this is enabled, the SPI RAM will be enabled during initial
 		boot. Unless you have specific requirements, you'll want to leave
@@ -978,7 +978,7 @@ config ESP32_SPIRAM_BOOT_INIT
 
 config ESP32_SPIRAM_IGNORE_NOTFOUND
 	bool "Ignore PSRAM when not found"
-	default "n"
+	default n
 	depends on ESP32_SPIRAM_BOOT_INIT && !BOOT_SDRAM_DATA
 	---help---
 		Normally, if psram initialization is enabled during compile time
@@ -989,7 +989,7 @@ config ESP32_SPIRAM_IGNORE_NOTFOUND
 config ESP32_SPIRAM_2T_MODE
 	bool "Enable SPI PSRAM 2T mode"
 	depends on ESP32_SPIRAM
-	default "n"
+	default n
 	---help---
 		Enable this option to fix single bit errors inside 64Mbit PSRAM.
 		Some 64Mbit PSRAM chips have a hardware issue in the RAM which
@@ -1357,7 +1357,7 @@ config ESP32_APP_MCUBOOT_HEADER_SIZE
 
 config ESP32_PARTITION_TABLE_OFFSET
 	hex "Partition Table offset"
-	default "0x8000"
+	default 0x8000
 	depends on ESP32_APP_FORMAT_LEGACY
 
 endmenu # Application Image Configuration
diff --git a/arch/xtensa/src/esp32s2/Kconfig b/arch/xtensa/src/esp32s2/Kconfig
index daaf2db..2f6e63b 100644
--- a/arch/xtensa/src/esp32s2/Kconfig
+++ b/arch/xtensa/src/esp32s2/Kconfig
@@ -618,7 +618,7 @@ comment "Application Image OTA Update support"
 
 config ESP32S2_OTA_PRIMARY_SLOT_OFFSET
 	hex "Application image primary slot offset"
-	default "0x10000"
+	default 0x10000
 
 config ESP32S2_OTA_PRIMARY_SLOT_DEVPATH
 	string "Application image primary slot device path"
@@ -626,7 +626,7 @@ config ESP32S2_OTA_PRIMARY_SLOT_DEVPATH
 
 config ESP32S2_OTA_SECONDARY_SLOT_OFFSET
 	hex "Application image secondary slot offset"
-	default "0x110000"
+	default 0x110000
 
 config ESP32S2_OTA_SECONDARY_SLOT_DEVPATH
 	string "Application image secondary slot device path"
@@ -634,15 +634,15 @@ config ESP32S2_OTA_SECONDARY_SLOT_DEVPATH
 
 config ESP32S2_OTA_SLOT_SIZE
 	hex "Application image slot size (in bytes)"
-	default "0x100000"
+	default 0x100000
 
 config ESP32S2_OTA_SCRATCH_OFFSET
 	hex "Scratch partition offset"
-	default "0x210000"
+	default 0x210000
 
 config ESP32S2_OTA_SCRATCH_SIZE
 	hex "Scratch partition size"
-	default "0x40000"
+	default 0x40000
 
 config ESP32S2_OTA_SCRATCH_DEVPATH
 	string "Scratch partition device path"
@@ -989,7 +989,7 @@ config ESP32S2_APP_MCUBOOT_HEADER_SIZE
 
 config ESP32S2_PARTITION_TABLE_OFFSET
 	hex "Partition Table offset"
-	default "0x8000"
+	default 0x8000
 	depends on ESP32S2_APP_FORMAT_LEGACY
 
 endmenu # Application Image Configuration
diff --git a/drivers/usbdev/Kconfig b/drivers/usbdev/Kconfig
index cfcb4e4..d6f9671 100644
--- a/drivers/usbdev/Kconfig
+++ b/drivers/usbdev/Kconfig
@@ -828,7 +828,7 @@ endif # !USBMSC_COMPOSITE
 
 config USBMSC_VERSIONNO
 	hex "USB MSC Version Number"
-	default "0x399"
+	default 0x399
 
 config USBMSC_REMOVABLE
 	bool "Mass storage removable"
diff --git a/libs/libc/machine/Kconfig b/libs/libc/machine/Kconfig
index 4ab474e..2ca6f79 100644
--- a/libs/libc/machine/Kconfig
+++ b/libs/libc/machine/Kconfig
@@ -11,7 +11,7 @@ menu "Architecture-Specific Support"
 
 config ARCH_LOWPUTC
 	bool "Low-level console output"
-	default "y"
+	default y
 	---help---
 		architecture supports low-level, boot time console output