You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2023/07/16 17:39:26 UTC
[nuttx] branch master updated (94af148fb3 -> 427f8a1624)
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
from 94af148fb3 sim/segger: Enable CONFIG_NOTE_RTT and CONFIG_SERIAL_RTT0
new 4d8eedb09a arch/sim: Link to libgcov.a when CONFIG_ARCH_COVERAGE is enabled
new e031a73aef Kconfig: Change some "default y" to "default !DEFAULT_SMALL"
new abfe082a6f Kconfig: Simplify the conditional default statement
new 427f8a1624 arch: Fix the mismath in comment
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
arch/Kconfig | 5 ++---
arch/arm/src/armv7-m/Kconfig | 5 ++---
arch/arm/src/armv7-r/Kconfig | 3 +--
arch/arm/src/armv8-m/Kconfig | 5 ++---
arch/arm/src/armv8-r/Kconfig | 3 +--
arch/arm/src/cxd56xx/Kconfig | 16 ++++++---------
arch/arm/src/cxd56xx/cxd56_emmc.c | 2 +-
arch/arm/src/gd32f4/Kconfig | 16 ++++++---------
arch/arm/src/imx6/Kconfig | 3 +--
arch/arm/src/imxrt/Kconfig | 3 +--
arch/arm/src/lpc17xx_40xx/Kconfig | 5 ++---
arch/arm/src/lpc43xx/Kconfig | 18 ++++++++--------
arch/arm/src/lpc54xx/Kconfig | 3 +--
arch/arm/src/nrf52/Kconfig | 3 +--
arch/arm/src/nrf53/Kconfig | 7 +++----
arch/arm/src/sam34/Kconfig | 9 +++-----
arch/arm/src/sama5/Kconfig | 14 +++++--------
arch/arm/src/samd5e5/Kconfig | 6 ++----
arch/arm/src/samv7/Kconfig | 12 ++++-------
arch/arm/src/stm32/Kconfig | 24 +++++++++-------------
arch/arm/src/stm32f7/Kconfig | 12 +++++------
arch/arm/src/stm32h7/Kconfig | 4 ++--
arch/arm/src/stm32wb/Kconfig | 3 +--
arch/hc/src/common/hc_copystate.c | 2 +-
arch/mips/src/pic32mx/Kconfig | 2 +-
arch/mips/src/pic32mz/Kconfig | 8 +++-----
arch/renesas/src/common/renesas_internal.h | 1 -
arch/risc-v/src/esp32c3/Kconfig.security | 2 +-
arch/risc-v/src/espressif/Kconfig | 2 +-
arch/risc-v/src/litex/Kconfig | 2 +-
arch/sim/src/Makefile | 4 ++++
arch/sim/src/sim/CMakeLists.txt | 4 ++++
arch/x86/src/common/x86_copystate.c | 2 +-
arch/x86_64/src/common/x86_64_copystate.c | 2 +-
arch/xtensa/src/esp32s2/Kconfig.security | 2 +-
arch/z80/src/z8/Kconfig | 3 +--
audio/Kconfig | 6 ++----
boards/arm/sama5/giant-board/Kconfig | 6 +++---
boards/arm/sama5/jupiter-nano/Kconfig | 6 +++---
boards/arm/sama5/sama5d2-xult/Kconfig | 6 +++---
boards/arm/sama5/sama5d3-xplained/Kconfig | 3 +--
boards/arm/sama5/sama5d3x-ek/Kconfig | 3 +--
boards/arm/sama5/sama5d4-ek/Kconfig | 3 +--
boards/arm/stm32/b-g474e-dpow1/Kconfig | 3 +--
.../arm/stm32/mikroe-stm32f4/configs/nx/defconfig | 1 -
.../stm32/mikroe-stm32f4/configs/nxlines/defconfig | 1 -
.../stm32/mikroe-stm32f4/configs/nxtext/defconfig | 1 -
.../stm32/nucleo-f302r8/configs/highpri/defconfig | 1 -
.../arm/stm32/nucleo-f302r8/configs/nsh/defconfig | 1 -
.../arm/stm32/nucleo-f334r8/configs/adc/defconfig | 1 -
.../stm32/nucleo-f334r8/configs/highpri/defconfig | 1 -
.../arm/stm32/nucleo-f334r8/configs/nsh/defconfig | 1 -
.../stm32/nucleo-f334r8/configs/spwm1/defconfig | 1 -
.../stm32/nucleo-f334r8/configs/spwm2/defconfig | 1 -
boards/arm/stm32/nucleo-f446re/Kconfig | 3 +--
boards/arm/stm32/nucleo-f4x1re/Kconfig | 3 +--
.../arm/stm32/nucleo-g431rb/configs/adc/defconfig | 1 -
boards/arm/stm32/nucleo-g474re/Kconfig | 3 +--
.../stm32/olimexino-stm32/configs/can/defconfig | 1 -
.../olimexino-stm32/configs/smallnsh/defconfig | 1 -
.../stm32/olimexino-stm32/configs/tiny/defconfig | 1 -
.../stm32f103-minimum/configs/hello/defconfig | 1 -
.../stm32f334-disco/configs/buckboost/defconfig | 1 -
.../stm32/stm32f334-disco/configs/nsh/defconfig | 1 -
.../stm32f334-disco/configs/powerled/defconfig | 1 -
boards/arm/stm32l4/nucleo-l476rg/Kconfig | 3 +--
.../tlsr82/tlsr8278adk80d/configs/nsh/defconfig | 1 -
boards/risc-v/litex/arty_a7/Kconfig | 2 +-
.../risc-v/mpfs/icicle/configs/rpmsg-sbi/defconfig | 1 -
drivers/lcd/Kconfig | 2 +-
drivers/misc/Kconfig | 5 ++---
drivers/mtd/Kconfig | 3 +--
drivers/sensors/Kconfig | 2 +-
drivers/serial/Kconfig | 3 +--
drivers/spi/Kconfig | 3 +--
fs/fat/Kconfig | 3 +--
fs/mmap/Kconfig | 2 +-
graphics/Kconfig | 3 +--
libs/libc/string/Kconfig | 2 +-
libs/libc/tls/Kconfig | 3 +--
libs/libnx/nxfonts/Kconfig | 24 ++++++++--------------
mm/Kconfig | 3 +--
net/udp/Kconfig | 3 +--
83 files changed, 133 insertions(+), 215 deletions(-)
[nuttx] 03/04: Kconfig: Simplify the conditional default statement
Posted by ac...@apache.org.
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
commit abfe082a6f3a1098402ea60591bbc36062fa9d28
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Jul 16 01:04:21 2023 +0800
Kconfig: Simplify the conditional default statement
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/Kconfig | 3 +--
arch/arm/src/armv7-m/Kconfig | 5 ++---
arch/arm/src/armv7-r/Kconfig | 3 +--
arch/arm/src/armv8-m/Kconfig | 5 ++---
arch/arm/src/armv8-r/Kconfig | 3 +--
arch/arm/src/cxd56xx/Kconfig | 16 ++++++----------
arch/arm/src/cxd56xx/cxd56_emmc.c | 2 +-
arch/arm/src/gd32f4/Kconfig | 16 ++++++----------
arch/arm/src/imx6/Kconfig | 3 +--
arch/arm/src/imxrt/Kconfig | 3 +--
arch/arm/src/lpc17xx_40xx/Kconfig | 5 ++---
arch/arm/src/lpc43xx/Kconfig | 18 +++++++++---------
arch/arm/src/lpc54xx/Kconfig | 3 +--
arch/arm/src/nrf52/Kconfig | 3 +--
arch/arm/src/nrf53/Kconfig | 7 +++----
arch/arm/src/sam34/Kconfig | 9 +++------
arch/arm/src/sama5/Kconfig | 14 +++++---------
arch/arm/src/samd5e5/Kconfig | 6 ++----
arch/arm/src/samv7/Kconfig | 12 ++++--------
arch/arm/src/stm32/Kconfig | 24 ++++++++++--------------
arch/arm/src/stm32f7/Kconfig | 12 +++++-------
arch/arm/src/stm32h7/Kconfig | 4 ++--
arch/arm/src/stm32wb/Kconfig | 3 +--
arch/mips/src/pic32mx/Kconfig | 2 +-
arch/mips/src/pic32mz/Kconfig | 8 +++-----
arch/risc-v/src/esp32c3/Kconfig.security | 2 +-
arch/risc-v/src/espressif/Kconfig | 2 +-
arch/risc-v/src/litex/Kconfig | 2 +-
arch/xtensa/src/esp32s2/Kconfig.security | 2 +-
arch/z80/src/z8/Kconfig | 3 +--
audio/Kconfig | 6 ++----
boards/arm/sama5/giant-board/Kconfig | 6 +++---
boards/arm/sama5/jupiter-nano/Kconfig | 6 +++---
boards/arm/sama5/sama5d2-xult/Kconfig | 6 +++---
boards/arm/sama5/sama5d3-xplained/Kconfig | 3 +--
boards/arm/sama5/sama5d3x-ek/Kconfig | 3 +--
boards/arm/sama5/sama5d4-ek/Kconfig | 3 +--
boards/arm/stm32/b-g474e-dpow1/Kconfig | 3 +--
boards/arm/stm32/nucleo-f446re/Kconfig | 3 +--
boards/arm/stm32/nucleo-f4x1re/Kconfig | 3 +--
boards/arm/stm32/nucleo-g474re/Kconfig | 3 +--
boards/arm/stm32l4/nucleo-l476rg/Kconfig | 3 +--
boards/risc-v/litex/arty_a7/Kconfig | 2 +-
drivers/lcd/Kconfig | 2 +-
drivers/misc/Kconfig | 3 +--
drivers/mtd/Kconfig | 3 +--
drivers/sensors/Kconfig | 2 +-
drivers/serial/Kconfig | 3 +--
drivers/spi/Kconfig | 3 +--
fs/fat/Kconfig | 3 +--
graphics/Kconfig | 3 +--
libs/libc/tls/Kconfig | 3 +--
libs/libnx/nxfonts/Kconfig | 24 ++++++++----------------
mm/Kconfig | 3 +--
net/udp/Kconfig | 3 +--
55 files changed, 118 insertions(+), 187 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index b9ba607652..eb4009a49e 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -667,8 +667,7 @@ endif # ARCH_STACK_DYNAMIC
config ARCH_KERNEL_STACK
bool "Kernel process stack"
- default n if !LIBC_EXECFUNCS
- default y if LIBC_EXECFUNCS
+ default LIBC_EXECFUNCS
depends on BUILD_KERNEL
---help---
It this option is selected, then every user process will have two
diff --git a/arch/arm/src/armv7-m/Kconfig b/arch/arm/src/armv7-m/Kconfig
index f7aec0382f..5e96e1e5b3 100644
--- a/arch/arm/src/armv7-m/Kconfig
+++ b/arch/arm/src/armv7-m/Kconfig
@@ -15,7 +15,7 @@ config ARMV7M_HAVE_DCACHE
config ARMV7M_USEBASEPRI
bool "Use BASEPRI Register"
- default y if ARCH_HIPRI_INTERRUPT
+ default ARCH_HIPRI_INTERRUPT
depends on ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7
---help---
Use the BASEPRI register to enable and disable interrupts. By
@@ -88,8 +88,7 @@ config ARMV7M_DTCM
config ARMV7M_TARGET2_PREL
bool "R_ARM_TARGET2 is PC relative"
- default n if !CXX_EXCEPTION
- default y if CXX_EXCEPTION
+ default CXX_EXCEPTION
depends on LIBC_ARCH_ELF
---help---
Perform a PC relative relocation for relocation type R_ARM_TARGET2
diff --git a/arch/arm/src/armv7-r/Kconfig b/arch/arm/src/armv7-r/Kconfig
index b185031ef6..b42348de90 100644
--- a/arch/arm/src/armv7-r/Kconfig
+++ b/arch/arm/src/armv7-r/Kconfig
@@ -33,8 +33,7 @@ config ARMV7R_HAVE_PTM
config ARMV7R_MEMINIT
bool
- default y if BOOT_SDRAM_DATA
- default n if !BOOT_SDRAM_DATA
+ default BOOT_SDRAM_DATA
---help---
If this configuration *not* selected, then it is assumed that all
memory resources are initialized via arm_data_initialize() and
diff --git a/arch/arm/src/armv8-m/Kconfig b/arch/arm/src/armv8-m/Kconfig
index d022a4511d..fc207a4847 100644
--- a/arch/arm/src/armv8-m/Kconfig
+++ b/arch/arm/src/armv8-m/Kconfig
@@ -15,7 +15,7 @@ config ARMV8M_HAVE_DCACHE
config ARMV8M_USEBASEPRI
bool "Use BASEPRI Register"
- default y if ARCH_HIPRI_INTERRUPT
+ default ARCH_HIPRI_INTERRUPT
---help---
Use the BASEPRI register to enable and disable interrupts. By
default, the PRIMASK register is used for this purpose. This
@@ -69,8 +69,7 @@ config ARMV8M_DTCM
config ARMV8M_TARGET2_PREL
bool "R_ARM_TARGET2 is PC relative"
- default n if !CXX_EXCEPTION
- default y if CXX_EXCEPTION
+ default CXX_EXCEPTION
depends on LIBC_ARCH_ELF
---help---
Perform a PC relative relocation for relocation type R_ARM_TARGET2
diff --git a/arch/arm/src/armv8-r/Kconfig b/arch/arm/src/armv8-r/Kconfig
index 412f51bb18..8acccd9c91 100644
--- a/arch/arm/src/armv8-r/Kconfig
+++ b/arch/arm/src/armv8-r/Kconfig
@@ -26,8 +26,7 @@ endif # ARMV8R_GIC_EOIMODE
config ARMV8R_MEMINIT
bool
- default y if BOOT_SDRAM_DATA
- default n if !BOOT_SDRAM_DATA
+ default BOOT_SDRAM_DATA
---help---
If this configuration *not* selected, then it is assumed that all
memory resources are initialized via arm_data_initialize() and
diff --git a/arch/arm/src/cxd56xx/Kconfig b/arch/arm/src/cxd56xx/Kconfig
index 9492d98a32..531fe32bf5 100644
--- a/arch/arm/src/cxd56xx/Kconfig
+++ b/arch/arm/src/cxd56xx/Kconfig
@@ -68,12 +68,11 @@ config CXD56_XOSC_CLOCK
config CXD56_SPH
bool
- default y if ASMP
+ default ASMP
config CXD56_PMIC
bool
- default y if CXD56_MAINCORE
- default n if CXD56_SUBCORE
+ default CXD56_MAINCORE
if CXD56_PMIC
@@ -106,8 +105,7 @@ config CXD56_CPUFIFO_NBUFFERS
config CXD56_FARAPI
bool
- default y if CXD56_MAINCORE
- default n if CXD56_SUBCORE
+ default CXD56_MAINCORE
menu "Far API Configuration"
depends on CXD56_FARAPI
@@ -1164,8 +1162,7 @@ menu "Storage Options"
menuconfig CXD56_SFC
bool "SPI Flash"
- default n if CXD56_SUBCORE
- default y
+ default !CXD56_SUBCORE
select MTD
if CXD56_SFC
@@ -1256,7 +1253,7 @@ endif # SPISD Configuration
config CXD56_EMMC
bool "eMMC"
- default n if CXD56_SUBCORE
+ default n
---help---
Emmc driver for cxd56xx chip
@@ -1377,8 +1374,7 @@ if CXD56_TESTSET
config CXD56_TESTSET_WITH_HWSEM
bool "Use custom testset based on hardware semaphore"
- default n if CXD56_USE_SYSBUS
- default y if !CXD56_USE_SYSBUS
+ default !CXD56_USE_SYSBUS
endif
diff --git a/arch/arm/src/cxd56xx/cxd56_emmc.c b/arch/arm/src/cxd56xx/cxd56_emmc.c
index abea9af0ec..b4ee950192 100644
--- a/arch/arm/src/cxd56xx/cxd56_emmc.c
+++ b/arch/arm/src/cxd56xx/cxd56_emmc.c
@@ -870,7 +870,7 @@ static ssize_t cxd56_emmc_read(struct inode *inode,
DEBUGASSERT(inode && inode->i_private);
priv = (struct cxd56_emmc_state_s *)inode->i_private;
- finfo("Read sector %" PRIu32 " (%u sectors) to %p\n",
+ finfo("Read sector %" PRIuOFF " (%u sectors) to %p\n",
start_sector, nsectors, buffer);
ret = cxd56_emmc_readsectors(priv, buffer, start_sector, nsectors);
diff --git a/arch/arm/src/gd32f4/Kconfig b/arch/arm/src/gd32f4/Kconfig
index 53c1e5c65c..20111a6c42 100644
--- a/arch/arm/src/gd32f4/Kconfig
+++ b/arch/arm/src/gd32f4/Kconfig
@@ -691,7 +691,7 @@ config ARCH_BOARD_GD32F4_CUSTOM_CLOCKCONFIG
config GD32F4_TCMEXCLUDE
bool "Exclude TCM SRAM from the heap"
- default y if ARCH_DMA || LIBC_ARCH_ELF
+ default ARCH_DMA || LIBC_ARCH_ELF
depends on GD32F4_HAVE_TCM
---help---
Exclude TCM SRAM from the HEAP because it cannot be used for DMA
@@ -1192,8 +1192,7 @@ config GD32F4_ADC0_DMA
config GD32F4_ADC0_SCAN
bool "ADC0 scan mode"
depends on GD32F4_ADC0
- default y if GD32F4_ADC0_DMA
- default n
+ default GD32F4_ADC0_DMA
config GD32F4_ADC0_DMA_CFG
int "ADC0 DMA configuration"
@@ -1226,8 +1225,7 @@ config GD32F4_ADC1_DMA
config GD32F4_ADC1_SCAN
bool "ADC1 scan mode"
depends on GD32F4_ADC1
- default y if GD32F4_ADC1_DMA
- default n
+ default GD32F4_ADC1_DMA
config GD32F4_ADC1_DMA_CFG
int "ADC1 DMA configuration"
@@ -1260,8 +1258,7 @@ config GD32F4_ADC2_DMA
config GD32F4_ADC2_SCAN
bool "ADC2 scan mode"
depends on GD32F4_ADC2
- default y if GD32F4_ADC2_DMA
- default n
+ default GD32F4_ADC2_DMA
config GD32F4_ADC2_DMA_CFG
int "ADC2 DMA configuration"
@@ -2504,7 +2501,7 @@ config GD32F4_ENET_PTP
config GD32F4_RMII
bool "Use the reduced media-independent interface (RMII) interface"
- default y if !GD32F4_MII
+ default !GD32F4_MII
---help---
Select Ethernet MII interface. The application can only select one of
the MII or RMII mode.
@@ -2566,8 +2563,7 @@ comment "USB Device Configuration"
config GD32F4_USB_ITRMP
bool "Re-map USB interrupt"
- default n if !GD32F4_CAN1
- default y if GD32F4_CAN1
+ default GD32F4_CAN1
depends on GD32F4_USB && GD32F4_GD32F4XX
---help---
The legacy USB in the F1 series shared interrupt lines with USB
diff --git a/arch/arm/src/imx6/Kconfig b/arch/arm/src/imx6/Kconfig
index 575e3070d7..784662dd28 100644
--- a/arch/arm/src/imx6/Kconfig
+++ b/arch/arm/src/imx6/Kconfig
@@ -147,8 +147,7 @@ config IMX_ENET_NTXBUFFERS
config IMX_ENET_ENHANCEDBD
bool # not optional
- default n if ARMV7A_DCACHE_DISABLE
- default y if !ARMV7A_DCACHE_DISABLE
+ default !ARMV7A_DCACHE_DISABLE
config IMX_ENET_NETHIFS
int # Not optional
diff --git a/arch/arm/src/imxrt/Kconfig b/arch/arm/src/imxrt/Kconfig
index b4948f6d23..da1c67df5e 100644
--- a/arch/arm/src/imxrt/Kconfig
+++ b/arch/arm/src/imxrt/Kconfig
@@ -2191,8 +2191,7 @@ config IMXRT_ENET_NTXBUFFERS
config IMXRT_ENET_ENHANCEDBD
bool # not optional
- default n if ARMV7M_DCACHE_WRITETHROUGH
- default y if !ARMV7M_DCACHE_WRITETHROUGH
+ default !ARMV7M_DCACHE_WRITETHROUGH
config IMXRT_ENET_NETHIFS
int # Not optional
diff --git a/arch/arm/src/lpc17xx_40xx/Kconfig b/arch/arm/src/lpc17xx_40xx/Kconfig
index b8ea3a254a..38b305fbff 100644
--- a/arch/arm/src/lpc17xx_40xx/Kconfig
+++ b/arch/arm/src/lpc17xx_40xx/Kconfig
@@ -784,7 +784,7 @@ menu "SDCARD Configuration"
config LPC17_40_SDCARD_DMA
bool "Support DMA data transfers"
- default y if LPC17_40_GPDMA
+ default LPC17_40_GPDMA
select SDIO_DMA
depends on LPC17_40_GPDMA
---help---
@@ -867,8 +867,7 @@ config LPC17_40_ETH_HASH
config LPC17_40_MULTICAST
bool "Multicast"
- default y if NET_MCASTGROUP
- default n if !NET_MCASTGROUP
+ default NET_MCASTGROUP
---help---
Enable receipt of multicast (and unicast) frames. Automatically set
if NET_MCASTGROUP is selected.
diff --git a/arch/arm/src/lpc43xx/Kconfig b/arch/arm/src/lpc43xx/Kconfig
index cc30c93afb..3b86eec569 100644
--- a/arch/arm/src/lpc43xx/Kconfig
+++ b/arch/arm/src/lpc43xx/Kconfig
@@ -77,48 +77,48 @@ endchoice # LPC43XX Chip Selection
config ARCH_FAMILY_LPC4310
bool
- default y if ARCH_CHIP_LPC4310FBD144 || ARCH_CHIP_LPC4310FET100
+ default ARCH_CHIP_LPC4310FBD144 || ARCH_CHIP_LPC4310FET100
select ARCH_HAVE_TICKLESS
config ARCH_FAMILY_LPC4320
bool
- default y if ARCH_CHIP_LPC4320FBD144 || ARCH_CHIP_LPC4320FET100
+ default ARCH_CHIP_LPC4320FBD144 || ARCH_CHIP_LPC4320FET100
select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4330
bool
- default y if ARCH_CHIP_LPC4330FBD144 || ARCH_CHIP_LPC4330FET100 || ARCH_CHIP_LPC4330FET180 || ARCH_CHIP_LPC4330FET256 || ARCH_CHIP_LPC4337JET100
+ default ARCH_CHIP_LPC4330FBD144 || ARCH_CHIP_LPC4330FET100 || ARCH_CHIP_LPC4330FET180 || ARCH_CHIP_LPC4330FET256 || ARCH_CHIP_LPC4337JET100
select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4337
bool
- default y if ARCH_CHIP_LPC4337JBD144 || ARCH_CHIP_LPC4337FET256
+ default ARCH_CHIP_LPC4337JBD144 || ARCH_CHIP_LPC4337FET256
select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4350
bool
- default y if ARCH_CHIP_LPC4350FBD208 || ARCH_CHIP_LPC4350FET180 || ARCH_CHIP_LPC4350FET256
+ default ARCH_CHIP_LPC4350FBD208 || ARCH_CHIP_LPC4350FET180 || ARCH_CHIP_LPC4350FET256
select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4353
bool
- default y if ARCH_CHIP_LPC4353FBD208 || ARCH_CHIP_LPC4353FET180 || ARCH_CHIP_LPC4353FET256
+ default ARCH_CHIP_LPC4353FBD208 || ARCH_CHIP_LPC4353FET180 || ARCH_CHIP_LPC4353FET256
select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4357
bool
- default y if ARCH_CHIP_LPC4357FET180 || ARCH_CHIP_LPC4357FBD208 || ARCH_CHIP_LPC4357FET256
+ default ARCH_CHIP_LPC4357FET180 || ARCH_CHIP_LPC4357FBD208 || ARCH_CHIP_LPC4357FET256
select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4370
bool
- default y if ARCH_CHIP_LPC4370FET100
+ default ARCH_CHIP_LPC4370FET100
select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1
@@ -656,7 +656,7 @@ config LPC43_PHYSR_100FD
config LPC43_RMII
bool
- default y if !LPC43_MII
+ default !LPC43_MII
config LPC43_ETHERNET_REGDEBUG
bool "Register-Level Debug"
diff --git a/arch/arm/src/lpc54xx/Kconfig b/arch/arm/src/lpc54xx/Kconfig
index 0ceec61db4..5ec3f6770d 100644
--- a/arch/arm/src/lpc54xx/Kconfig
+++ b/arch/arm/src/lpc54xx/Kconfig
@@ -867,8 +867,7 @@ config LPC54_ETH_RX_BROADCAST
config LPC54_ETH_RX_ALLMULTICAST
bool "Accept all multicast packets"
- default y if NET_BROADCAST
- default n if !NET_BROADCAST
+ default NET_BROADCAST
---help---
If selected, all received frames with a multicast destination
address (first bit in the destination address field is '1') are
diff --git a/arch/arm/src/nrf52/Kconfig b/arch/arm/src/nrf52/Kconfig
index 2efb5967b1..593e1cfa17 100644
--- a/arch/arm/src/nrf52/Kconfig
+++ b/arch/arm/src/nrf52/Kconfig
@@ -828,8 +828,7 @@ config NRF52_SDC_LE_2M_PHY
config NRF52_SDC_LE_CODED_PHY
bool "Support LE Coded PHY"
- default n if ARCH_CHIP_NRF52832
- default y if ARCH_CHIP_NRF52840
+ default ARCH_CHIP_NRF52840
depends on NRF52_SDC_MULTIROLE
config NRF52_SDC_DLE
diff --git a/arch/arm/src/nrf53/Kconfig b/arch/arm/src/nrf53/Kconfig
index 4029a4d937..94324e40cb 100644
--- a/arch/arm/src/nrf53/Kconfig
+++ b/arch/arm/src/nrf53/Kconfig
@@ -164,7 +164,7 @@ config NRF53_SPI_MASTER
config NRF53_IPC
bool
- default y if RPTUN
+ default RPTUN
config NRF53_UART
bool
@@ -375,7 +375,7 @@ endif # NRF53_USE_HFCLK192M
config NRF53_OSCILLATOR_LFXO
bool "Configure LFXO oscillator"
- default y if NRF53_LFCLK_XTAL
+ default NRF53_LFCLK_XTAL
depends on NRF53_APPCORE
---help---
Configure LFXO oscillator
@@ -777,8 +777,7 @@ config NRF53_SDC_LE_2M_PHY
config NRF53_SDC_LE_CODED_PHY
bool "Support LE Coded PHY"
- default n if ARCH_CHIP_NRF53832
- default y if ARCH_CHIP_NRF53840
+ default ARCH_CHIP_NRF53840
depends on NRF53_SDC_MULTIROLE
config NRF53_SDC_DLE
diff --git a/arch/arm/src/sam34/Kconfig b/arch/arm/src/sam34/Kconfig
index d67e905c60..05164e2e9e 100644
--- a/arch/arm/src/sam34/Kconfig
+++ b/arch/arm/src/sam34/Kconfig
@@ -437,8 +437,7 @@ config SAM34_NAND
config SAM34_OCD
bool "On-chip DEBUG (OCD)"
depends on ARCH_CHIP_SAM4L
- default y if DEBUG_SYMBOLS
- default n if !DEBUG_SYMBOLS
+ default DEBUG_SYMBOLS
config SAM34_PARC
bool "Parallel Capture (PARC)"
@@ -1083,16 +1082,14 @@ config SAM34_TC5_TIOB
config SAM34_ONESHOT
bool "TC one-shot wrapper"
- default n if !SCHED_TICKLESS
- default y if SCHED_TICKLESS
+ default SCHED_TICKLESS
---help---
Enable a wrapper around the low level timer/counter functions to
support one-shot timer.
config SAM34_FREERUN
bool "TC free-running wrapper"
- default n if !SCHED_TICKLESS
- default y if SCHED_TICKLESS
+ default SCHED_TICKLESS
---help---
Enable a wrapper around the low level timer/counter functions to
support a free-running timer.
diff --git a/arch/arm/src/sama5/Kconfig b/arch/arm/src/sama5/Kconfig
index cf019689d2..2851690e93 100644
--- a/arch/arm/src/sama5/Kconfig
+++ b/arch/arm/src/sama5/Kconfig
@@ -2572,8 +2572,7 @@ config SAMA5_EMAC_MII
config SAMA5_EMAC_RMII
bool
- default y if !SAMA5_EMAC_MII
- default n if SAMA5_EMAC_MII
+ default !SAMA5_EMAC_MII
config SAMA5_EMAC_AUTONEG
bool "Use autonegotiation"
@@ -5056,16 +5055,14 @@ endif # SAMA5_TC2
config SAMA5_ONESHOT
bool "TC one-shot wrapper"
- default n if !SCHED_TICKLESS
- default y if SCHED_TICKLESS
+ default SCHED_TICKLESS
---help---
Enable a wrapper around the low level timer/counter functions to
support one-shot timer.
config SAMA5_FREERUN
bool "TC free-running wrapper"
- default n if !SCHED_TICKLESS
- default y if SCHED_TICKLESS
+ default SCHED_TICKLESS
---help---
Enable a wrapper around the low level timer/counter functions to
support a free-running timer.
@@ -5360,8 +5357,7 @@ config SAMA5_WDT_INTERRUPT
config SAMA5_WDT_DEBUGHALT
bool "Halt on DEBUG"
- default y if DEBUG_FEATURES
- default n if !DEBUG_FEATURES
+ default DEBUG_FEATURES
---help---
Halt the watchdog timer in the debug state
@@ -6235,7 +6231,7 @@ endmenu # Heap Configuration
config SAMA5_SDMMC
bool "enable SDMMC controller"
- default y if SAMA5_HAVE_SDMMC
+ default SAMA5_HAVE_SDMMC
select SDIO_DMA
select SCHED_HPWORK
select MMCSD
diff --git a/arch/arm/src/samd5e5/Kconfig b/arch/arm/src/samd5e5/Kconfig
index e2f5c91872..29929401d9 100644
--- a/arch/arm/src/samd5e5/Kconfig
+++ b/arch/arm/src/samd5e5/Kconfig
@@ -496,16 +496,14 @@ config SAMD5E5_TC7
config SAMD5E5_ONESHOT
bool "TC one-shot wrapper"
- default n if !SCHED_TICKLESS
- default y if SCHED_TICKLESS
+ default SCHED_TICKLESS
---help---
Enable a wrapper around the low level timer/counter functions to
support one-shot timer.
config SAMD5E5_FREERUN
bool "TC free-running wrapper"
- default n if !SCHED_TICKLESS
- default y if SCHED_TICKLESS
+ default SCHED_TICKLESS
---help---
Enable a wrapper around the low level timer/counter functions to
support a free-running timer.
diff --git a/arch/arm/src/samv7/Kconfig b/arch/arm/src/samv7/Kconfig
index 80bc5fae2b..05401875c3 100644
--- a/arch/arm/src/samv7/Kconfig
+++ b/arch/arm/src/samv7/Kconfig
@@ -1430,8 +1430,7 @@ config SAMV7_WDT_INTERRUPT
config SAMV7_WDT_DEBUGHALT
bool "Halt on DEBUG"
- default y if DEBUG_FEATURES
- default n if !DEBUG_FEATURES
+ default DEBUG_FEATURES
---help---
Halt the watchdog timer in the debug state
@@ -1464,8 +1463,7 @@ config SAMV7_RSWDT_INTERRUPT
config SAMV7_RSWDT_DEBUGHALT
bool "Halt on DEBUG"
- default y if DEBUG_FEATURES
- default n if !DEBUG_FEATURES
+ default DEBUG_FEATURES
---help---
Halt the watchdog timer in the debug state
@@ -2374,16 +2372,14 @@ endif # SAMV7_TC3
config SAMV7_ONESHOT
bool "TC one-shot wrapper"
- default n if !SCHED_TICKLESS
- default y if SCHED_TICKLESS
+ default SCHED_TICKLESS
---help---
Enable a wrapper around the low level timer/counter functions to
support one-shot timer.
config SAMV7_FREERUN
bool "TC free-running wrapper"
- default n if !SCHED_TICKLESS
- default y if SCHED_TICKLESS
+ default SCHED_TICKLESS
---help---
Enable a wrapper around the low level timer/counter functions to
support a free-running timer.
diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig
index 2487f654ed..da4f365c09 100644
--- a/arch/arm/src/stm32/Kconfig
+++ b/arch/arm/src/stm32/Kconfig
@@ -3693,7 +3693,7 @@ config STM32_FLASH_WORKAROUND_DATA_CACHE_CORRUPTION_ON_RWW
config STM32_FLASH_PREFETCH
bool "Enable FLASH Pre-fetch"
- default y if STM32_STM32F427 || STM32_STM32F429 || STM32_STM32F446
+ default STM32_STM32F427 || STM32_STM32F429 || STM32_STM32F446
default n
depends on STM32_STM32F20XX || STM32_STM32F4XXX
---help---
@@ -3764,7 +3764,7 @@ config STM32_I2SPLL
config STM32_CCMEXCLUDE
bool "Exclude CCM SRAM from the heap"
- default y if ARCH_DMA || LIBC_ARCH_ELF
+ default ARCH_DMA || LIBC_ARCH_ELF
depends on STM32_HAVE_CCM
---help---
Exclude CCM SRAM from the HEAP because (1) it cannot be used for DMA
@@ -3783,8 +3783,7 @@ config STM32_CCM_PROCFS
config STM32_DMACAPABLE
bool "Workaround non-DMA capable memory"
depends on ARCH_DMA
- default y if STM32_STM32F4XXX && !STM32_CCMEXCLUDE
- default n if !STM32_STM32F4XXX || STM32_CCMEXCLUDE
+ default STM32_STM32F4XXX && !STM32_CCMEXCLUDE
---help---
This option enables the DMA interface stm32_dmacapable that can be
used to check if it is possible to do DMA from the selected address.
@@ -8577,7 +8576,7 @@ config STM32_ADC1_DMA
config STM32_ADC1_SCAN
bool "ADC1 scan mode"
depends on STM32_ADC1 && STM32_HAVE_IP_ADC_V1
- default y if STM32_ADC1_DMA
+ default STM32_ADC1_DMA
default n
config STM32_ADC1_DMA_CFG
@@ -8610,7 +8609,7 @@ config STM32_ADC2_DMA
config STM32_ADC2_SCAN
bool "ADC2 scan mode"
depends on STM32_ADC2 && STM32_HAVE_IP_ADC_V1
- default y if STM32_ADC2_DMA
+ default STM32_ADC2_DMA
default n
config STM32_ADC2_DMA_CFG
@@ -8643,7 +8642,7 @@ config STM32_ADC3_DMA
config STM32_ADC3_SCAN
bool "ADC3 scan mode"
depends on STM32_ADC3 && STM32_HAVE_IP_ADC_V1
- default y if STM32_ADC3_DMA
+ default STM32_ADC3_DMA
default n
config STM32_ADC3_DMA_CFG
@@ -10582,8 +10581,7 @@ menu "I2C Configuration"
config STM32_I2C_ALT
bool "Alternate I2C implementation"
- default n if !STM32_PERFORMANCELINE
- default y if STM32_PERFORMANCELINE
+ default STM32_PERFORMANCELINE
depends on !STM32_STM32F30XX
---help---
This selection enables an alternative I2C driver. This alternate
@@ -10659,8 +10657,7 @@ config STM32_SDIO_PULLUP
config STM32_SDIO_DMA
bool "Support DMA data transfers"
- default y if STM32_DMA2
- default n if !STM32_DMA2
+ default STM32_DMA2
select SDIO_DMA
depends on STM32_DMA2
---help---
@@ -10932,7 +10929,7 @@ config STM32_ETH_PTP
config STM32_RMII
bool
- default y if !STM32_MII
+ default !STM32_MII
choice
prompt "RMII clock configuration"
@@ -11115,8 +11112,7 @@ endmenu
config STM32_USB_ITRMP
bool "Re-map USB interrupt"
- default n if !STM32_CAN1
- default y if STM32_CAN1
+ default STM32_CAN1
depends on STM32_USB && STM32_STM32F30XX
---help---
The legacy USB in the F1 series shared interrupt lines with USB
diff --git a/arch/arm/src/stm32f7/Kconfig b/arch/arm/src/stm32f7/Kconfig
index e6ee0b1035..f25b9e706b 100644
--- a/arch/arm/src/stm32f7/Kconfig
+++ b/arch/arm/src/stm32f7/Kconfig
@@ -2677,7 +2677,7 @@ config STM32F7_CUSTOM_CLOCKCONFIG
config STM32F7_DTCMEXCLUDE
bool "Exclude DTCM SRAM from the heap"
- default y if LIBC_ARCH_ELF
+ default LIBC_ARCH_ELF
depends on ARMV7M_HAVE_DTCM
---help---
Exclude DTCM SRAM from the HEAP because it appears to be impossible
@@ -6217,7 +6217,7 @@ config STM32F7_ADC1_DMA
config STM32F7_ADC1_SCAN
bool "ADC1 scan mode"
depends on STM32F7_ADC1
- default y if STM32F7_ADC1_DMA
+ default STM32F7_ADC1_DMA
default n
config STM32F7_ADC1_DMA_CFG
@@ -6250,8 +6250,7 @@ config STM32F7_ADC2_DMA
config STM32F7_ADC2_SCAN
bool "ADC2 scan mode"
depends on STM32F7_ADC2
- default y if STM32F7_ADC2_DMA
- default n
+ default STM32F7_ADC2_DMA
config STM32F7_ADC2_DMA_CFG
int "ADC2 DMA configuration"
@@ -6283,8 +6282,7 @@ config STM32F7_ADC3_DMA
config STM32F7_ADC3_SCAN
bool "ADC3 scan mode"
depends on STM32F7_ADC3
- default y if STM32F7_ADC3_DMA
- default n
+ default STM32F7_ADC3_DMA
config STM32F7_ADC3_DMA_CFG
int "ADC3 DMA configuration"
@@ -6543,7 +6541,7 @@ config STM32F7_ETH_PTP
config STM32F7_RMII
bool
- default y if !STM32F7_MII
+ default !STM32F7_MII
choice
prompt "RMII clock configuration"
diff --git a/arch/arm/src/stm32h7/Kconfig b/arch/arm/src/stm32h7/Kconfig
index fc0a3b599d..fec677d2c4 100644
--- a/arch/arm/src/stm32h7/Kconfig
+++ b/arch/arm/src/stm32h7/Kconfig
@@ -2101,7 +2101,7 @@ config STM32H7_SRAM4EXCLUDE
config STM32H7_DTCMEXCLUDE
bool "Exclude DTCM SRAM from the heap"
- default y if LIBC_ARCH_ELF
+ default LIBC_ARCH_ELF
depends on ARMV7M_HAVE_DTCM
---help---
Exclude DTCM SRAM from the HEAP because it appears to be impossible
@@ -5420,7 +5420,7 @@ config STM32H7_ETH_PTP
config STM32H7_RMII
bool
- default y if !STM32H7_MII
+ default !STM32H7_MII
choice
prompt "RMII clock configuration"
diff --git a/arch/arm/src/stm32wb/Kconfig b/arch/arm/src/stm32wb/Kconfig
index 7670f2fd86..b948f75717 100644
--- a/arch/arm/src/stm32wb/Kconfig
+++ b/arch/arm/src/stm32wb/Kconfig
@@ -1179,8 +1179,7 @@ config STM32WB_BLE_LE_2M_PHY
config STM32WB_BLE_LE_CODED_PHY
bool "Support LE Coded PHY"
- default y if STM32WB_STM32WB15 || STM32WB_STM32WB35 || STM32WB_STM32WB55
- default n
+ default STM32WB_STM32WB15 || STM32WB_STM32WB35 || STM32WB_STM32WB55
depends on STM32WB_STM32WB15 || STM32WB_STM32WB35 || STM32WB_STM32WB55
config STM32WB_BLE_TTY_NAME
diff --git a/arch/mips/src/pic32mx/Kconfig b/arch/mips/src/pic32mx/Kconfig
index b5bbcfc10e..4442f7ed34 100644
--- a/arch/mips/src/pic32mx/Kconfig
+++ b/arch/mips/src/pic32mx/Kconfig
@@ -1099,7 +1099,7 @@ config PIC32MX_ETH_PRIORITY
config PIC32MX_MULTICAST
bool "Multicast"
- default y if NET_MCASTGROUP
+ default NET_MCASTGROUP
depends on PIC32MX_ETHERNET
---help---
Enable receipt of multicast (and unicast) frames. Automatically set if
diff --git a/arch/mips/src/pic32mz/Kconfig b/arch/mips/src/pic32mz/Kconfig
index 11744da9e3..f3d55358cf 100644
--- a/arch/mips/src/pic32mz/Kconfig
+++ b/arch/mips/src/pic32mz/Kconfig
@@ -1128,7 +1128,7 @@ config PIC32MZ_ETH_PRIORITY
config PIC32MZ_MULTICAST
bool "Multicast"
- default y if NET_MCASTGROUP
+ default NET_MCASTGROUP
depends on PIC32MZ_ETHERNET
---help---
Enable receipt of multicast (and unicast) frames. Automatically set if
@@ -1147,8 +1147,7 @@ menu "Device Configuration 0 (DEVCFG0)"
config PIC32MZ_DEBUGGER_ENABLE
bool "Background debugger enable"
- default y if DEBUG_FEATURES
- default n if !DEBUG_FEATURES
+ default DEBUG_FEATURES
---help---
Background Debugger Enable
@@ -1166,8 +1165,7 @@ config PIC32MZ_ICESEL_CH2
config PIC32MZ_TRACE_ENABLE
bool "Trace enable"
- default y if DEBUG_FEATURES
- default n if !DEBUG_FEATURES
+ default DEBUG_FEATURES
---help---
Trace Enable
diff --git a/arch/risc-v/src/esp32c3/Kconfig.security b/arch/risc-v/src/esp32c3/Kconfig.security
index 250e33cacf..78f146f55e 100644
--- a/arch/risc-v/src/esp32c3/Kconfig.security
+++ b/arch/risc-v/src/esp32c3/Kconfig.security
@@ -227,7 +227,7 @@ endmenu # Potentially insecure options
config ESP32C3_SECURE_ROM_DL_MODE_ENABLED
bool
- default y if !ESP32C3_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
+ default !ESP32C3_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
choice ESP32C3_SECURE_UART_ROM_DL_MODE
bool "UART ROM download mode"
diff --git a/arch/risc-v/src/espressif/Kconfig b/arch/risc-v/src/espressif/Kconfig
index 05467eb826..c4c1a78726 100644
--- a/arch/risc-v/src/espressif/Kconfig
+++ b/arch/risc-v/src/espressif/Kconfig
@@ -238,7 +238,7 @@ config ESPRESSIF_GPIO_IRQ
config ESPRESSIF_HR_TIMER
bool
- default y if RTC_DRIVER
+ default RTC_DRIVER
---help---
A high-resolution hardware timer for supporting the management of
kernel events.
diff --git a/arch/risc-v/src/litex/Kconfig b/arch/risc-v/src/litex/Kconfig
index 610f4970cb..83b4fbd6d5 100644
--- a/arch/risc-v/src/litex/Kconfig
+++ b/arch/risc-v/src/litex/Kconfig
@@ -105,7 +105,7 @@ config LITEX_SDIO
config LITEX_SDIO1
bool "Enable SDIO1"
- default y if LITEX_SDIO
+ default LITEX_SDIO
select LITEX_SDIO_DMA
depends on LITEX_SDIO
diff --git a/arch/xtensa/src/esp32s2/Kconfig.security b/arch/xtensa/src/esp32s2/Kconfig.security
index f03c975cab..1776b77555 100644
--- a/arch/xtensa/src/esp32s2/Kconfig.security
+++ b/arch/xtensa/src/esp32s2/Kconfig.security
@@ -226,7 +226,7 @@ endmenu # Potentially insecure options
config ESP32S2_SECURE_ROM_DL_MODE_ENABLED
bool
- default y if !ESP32S2_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
+ default !ESP32S2_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
choice ESP32S2_SECURE_UART_ROM_DL_MODE
bool "UART ROM download mode"
diff --git a/arch/z80/src/z8/Kconfig b/arch/z80/src/z8/Kconfig
index 8762732b5f..e516e79ece 100644
--- a/arch/z80/src/z8/Kconfig
+++ b/arch/z80/src/z8/Kconfig
@@ -47,8 +47,7 @@ config Z8_UART1
config Z8_TOOLCHAIN_ZDSII
bool
- default y if ARCH_CHIP_Z8
- default n if !ARCH_CHIP_Z8
+ default ARCH_CHIP_Z8
choice
prompt "ZDS-II Toolchain version"
diff --git a/audio/Kconfig b/audio/Kconfig
index 831fc25de5..234bcb433c 100644
--- a/audio/Kconfig
+++ b/audio/Kconfig
@@ -154,8 +154,7 @@ config AUDIO_EQUALIZER_NBANDS
config AUDIO_EXCLUDE_TONE
bool "Exclude tone (bass and treble) controls"
- default y if !AUDIO_EXCLUDE_EQUALIZER
- default n if AUDIO_EXCLUDE_EQUALIZER
+ default !AUDIO_EXCLUDE_EQUALIZER
---help---
Exclude building support for changing the bass and treble. Normally
you would not select both tone controls and equalizer support unless
@@ -183,8 +182,7 @@ config AUDIO_EXCLUDE_STOP
config AUDIO_EXCLUDE_FFORWARD
bool "Exclude fast forward controls"
- default n if !AUDIO_EXCLUDE_STOP
- default y if AUDIO_EXCLUDE_STOP
+ default AUDIO_EXCLUDE_STOP
---help---
Exclude building support for fast forwarding through audio files
once they are submitted. Selecting this option would only make
diff --git a/boards/arm/sama5/giant-board/Kconfig b/boards/arm/sama5/giant-board/Kconfig
index abd800b259..ba840fde15 100644
--- a/boards/arm/sama5/giant-board/Kconfig
+++ b/boards/arm/sama5/giant-board/Kconfig
@@ -27,7 +27,7 @@ config SAMA5D27_GIANT_BOARD_USBHOST_PRIO
config SAMA5_SDMMC
bool "enable SDMMC controller"
- default y if SAMA5_HAVE_SDMMC
+ default SAMA5_HAVE_SDMMC
select SDIO_DMA
select SCHED_HPWORK
select MMCSD
@@ -41,7 +41,7 @@ config SAMA5_SDMMC
config SAMA5_SDMMC0
bool "Enable SDMMC0 (built-in eMMC)"
- default n if SAMA5_SDMMC
+ default !SAMA5_SDMMC
depends on SAMA5_SDMMC
config SAMA5_SDMMC0_SIZE
@@ -78,7 +78,7 @@ config SAMA5_SDMMC1_WIDTH_D1_D8
config SAMA5_SDMMC1
bool "Enable SDMMC1"
- default y if SAMA5_SDMMC
+ default SAMA5_SDMMC
select SAMA5_SDMMC1_WIDTH_D1_D4
depends on SAMA5_SDMMC
diff --git a/boards/arm/sama5/jupiter-nano/Kconfig b/boards/arm/sama5/jupiter-nano/Kconfig
index d00b09a613..54713dfd68 100644
--- a/boards/arm/sama5/jupiter-nano/Kconfig
+++ b/boards/arm/sama5/jupiter-nano/Kconfig
@@ -36,7 +36,7 @@ config JUPITERNANO_USBHOST_PRIO
config SAMA5_SDMMC
bool "enable SDMMC controller"
- default y if SAMA5_HAVE_SDMMC
+ default SAMA5_HAVE_SDMMC
select SDIO_DMA
select SCHED_WORKQUEUE
select SCHED_HPWORK
@@ -52,7 +52,7 @@ config SAMA5_SDMMC
config SAMA5_SDMMC0
bool "Enable SDMMC0 (built-in eMMC)"
- default n if SAMA5_SDMMC
+ default !SAMA5_SDMMC
depends on SAMA5_SDMMC
config SAMA5_SDMMC0_SIZE
@@ -89,7 +89,7 @@ config SAMA5_SDMMC1_WIDTH_D1_D8
config SAMA5_SDMMC1
bool "Enable SDMMC1"
- default y if SAMA5_SDMMC
+ default SAMA5_SDMMC
select SAMA5_SDMMC1_WIDTH_D1_D4
depends on SAMA5_SDMMC
diff --git a/boards/arm/sama5/sama5d2-xult/Kconfig b/boards/arm/sama5/sama5d2-xult/Kconfig
index dbe2c5e475..83f06e1e28 100644
--- a/boards/arm/sama5/sama5d2-xult/Kconfig
+++ b/boards/arm/sama5/sama5d2-xult/Kconfig
@@ -36,7 +36,7 @@ config SAMA5D2XULT_USBHOST_PRIO
config SAMA5_SDMMC
bool "enable SDMMC controller"
- default y if SAMA5_HAVE_SDMMC
+ default SAMA5_HAVE_SDMMC
select SDIO_DMA
select SCHED_HPWORK
select MMCSD
@@ -49,7 +49,7 @@ config SAMA5_SDMMC
config SAMA5_SDMMC0
bool "Enable SDMMC0 (built-in eMMC)"
- default n if SAMA5_SDMMC
+ default !SAMA5_SDMMC
depends on SAMA5_SDMMC
config SAMA5_SDMMC0_SIZE
@@ -86,7 +86,7 @@ config SAMA5_SDMMC0_WIDTH_D1_D8
config SAMA5_SDMMC1
bool "Enable SDMMC1"
- default y if SAMA5_SDMMC
+ default SAMA5_SDMMC
select SAMA5_SDMMC1_WIDTH_D1_D4
depends on SAMA5_SDMMC
diff --git a/boards/arm/sama5/sama5d3-xplained/Kconfig b/boards/arm/sama5/sama5d3-xplained/Kconfig
index 46087605ad..cf8baeb97e 100644
--- a/boards/arm/sama5/sama5d3-xplained/Kconfig
+++ b/boards/arm/sama5/sama5d3-xplained/Kconfig
@@ -22,8 +22,7 @@ endchoice # CPU Frequency
config SAMA5D3XPLAINED_SLOWCLOCK
bool
- default y if SCHED_TICKLESS
- default n if !SCHED_TICKLESS
+ default SCHED_TICKLESS
choice
prompt "SAMA5D3-Xplained DRAM Type"
diff --git a/boards/arm/sama5/sama5d3x-ek/Kconfig b/boards/arm/sama5/sama5d3x-ek/Kconfig
index 09b5954f75..c33fd2eba9 100644
--- a/boards/arm/sama5/sama5d3x-ek/Kconfig
+++ b/boards/arm/sama5/sama5d3x-ek/Kconfig
@@ -261,8 +261,7 @@ endif # VIDEO_OV2640
config SAMA5D3XEK_SLOWCLOCK
bool
- default y if SCHED_TICKLESS
- default n if !SCHED_TICKLESS
+ default SCHED_TICKLESS
if AUDIO_WM8904
diff --git a/boards/arm/sama5/sama5d4-ek/Kconfig b/boards/arm/sama5/sama5d4-ek/Kconfig
index 035ffaf214..351b9ebc1a 100644
--- a/boards/arm/sama5/sama5d4-ek/Kconfig
+++ b/boards/arm/sama5/sama5d4-ek/Kconfig
@@ -358,8 +358,7 @@ config SAMA5D4EK_CHANNEL
config SAMA5D4EK_SLOWCLOCK
bool
- default y if SCHED_TICKLESS
- default n if !SCHED_TICKLESS
+ default SCHED_TICKLESS
if AUDIO_WM8904
diff --git a/boards/arm/stm32/b-g474e-dpow1/Kconfig b/boards/arm/stm32/b-g474e-dpow1/Kconfig
index 9aec68238e..e916a2a317 100644
--- a/boards/arm/stm32/b-g474e-dpow1/Kconfig
+++ b/boards/arm/stm32/b-g474e-dpow1/Kconfig
@@ -12,8 +12,7 @@ if ARCH_BOARD_B_G474E_DPOW1
#
#config SOME_CONFIG_BOOL
# bool "Description"
-# default n if !FEATURE_X
-# default y if FEATURE_X
+# default FEATURE_X
# depends on FEATURE_Y
# ---help---
# Help text goes here.
diff --git a/boards/arm/stm32/nucleo-f446re/Kconfig b/boards/arm/stm32/nucleo-f446re/Kconfig
index d9e8875f07..1e2e8b8e8b 100644
--- a/boards/arm/stm32/nucleo-f446re/Kconfig
+++ b/boards/arm/stm32/nucleo-f446re/Kconfig
@@ -20,8 +20,7 @@ endif # SENSORS_QENCODER
config NUCLEO_F446RE_AJOY_MINBUTTONS
bool "Minimal Joystick Buttons"
- default n if !STM32_USART1
- default y if STM32_USART1
+ default STM32_USART1
depends on INPUT_AJOYSTICK
---help---
The Itead Joystick shield supports analog X/Y position and up to 5
diff --git a/boards/arm/stm32/nucleo-f4x1re/Kconfig b/boards/arm/stm32/nucleo-f4x1re/Kconfig
index e23c137608..166b75a72a 100644
--- a/boards/arm/stm32/nucleo-f4x1re/Kconfig
+++ b/boards/arm/stm32/nucleo-f4x1re/Kconfig
@@ -12,8 +12,7 @@ config NUCLEO_F401RE_QETIMER
config NUCLEO_F401RE_AJOY_MINBUTTONS
bool "Minimal Joystick Buttons"
- default n if !STM32_USART1
- default y if STM32_USART1
+ default STM32_USART1
depends on INPUT_AJOYSTICK
---help---
The Itead Joystick shield supports analog X/Y position and up to 5
diff --git a/boards/arm/stm32/nucleo-g474re/Kconfig b/boards/arm/stm32/nucleo-g474re/Kconfig
index 1e3da0442e..82bb07a4dc 100644
--- a/boards/arm/stm32/nucleo-g474re/Kconfig
+++ b/boards/arm/stm32/nucleo-g474re/Kconfig
@@ -12,8 +12,7 @@ if ARCH_BOARD_NUCLEO_G474RE
#
#config SOME_CONFIG_BOOL
# bool "Description"
-# default n if !FEATURE_X
-# default y if FEATURE_X
+# default FEATURE_X
# depends on FEATURE_Y
# ---help---
# Help text goes here.
diff --git a/boards/arm/stm32l4/nucleo-l476rg/Kconfig b/boards/arm/stm32l4/nucleo-l476rg/Kconfig
index 95404d571e..d8881a5a6b 100644
--- a/boards/arm/stm32l4/nucleo-l476rg/Kconfig
+++ b/boards/arm/stm32l4/nucleo-l476rg/Kconfig
@@ -7,8 +7,7 @@ if ARCH_BOARD_NUCLEO_L476RG
config NUCLEO_L476RG_AJOY_MINBUTTONS
bool "Minimal Joystick Buttons"
- default n if !STM32_USART1
- default y if STM32_USART1
+ default STM32_USART1
depends on INPUT_AJOYSTICK
---help---
The Itead Joystick shield supports analog X/Y position and up to 5
diff --git a/boards/risc-v/litex/arty_a7/Kconfig b/boards/risc-v/litex/arty_a7/Kconfig
index b64aa2d566..7977b985b2 100644
--- a/boards/risc-v/litex/arty_a7/Kconfig
+++ b/boards/risc-v/litex/arty_a7/Kconfig
@@ -18,7 +18,7 @@ config LITEX_SDIO
config LITEX_SDIO1
bool "Enable SDIO1"
- default y if LITEX_SDIO
+ default LITEX_SDIO
select LITEX_SDIO_DMA
depends on LITEX_SDIO
diff --git a/drivers/lcd/Kconfig b/drivers/lcd/Kconfig
index 4f09f5ae90..5b66f35100 100644
--- a/drivers/lcd/Kconfig
+++ b/drivers/lcd/Kconfig
@@ -960,7 +960,7 @@ config ST7565_MIRROR_X
config ST7565_MIRROR_Y
bool "ST7565 apply mirror on Y"
- default y if AQM_1248A
+ default AQM_1248A
default n
---help---
Mirror Y on LCD.
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index b7e7949e2b..1552363bd2 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -100,8 +100,7 @@ if DRVR_WRITEBUFFER || DRVR_READAHEAD
config DRVR_READBYTES
bool "Support byte read method"
- default y if MTD_BYTE_WRITE
- default n if !MTD_BYTE_WRITE
+ default MTD_BYTE_WRITE
config DRVR_REMOVABLE
bool "Support removable media"
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 5932aeaaa4..f8afb3851a 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -244,8 +244,7 @@ config MTD_NAND_BLOCKCHECK
config MTD_NAND_SWECC
bool "Software ECC support"
- default n if ARCH_NAND_HWECC
- default y if !ARCH_NAND_HWECC
+ default !ARCH_NAND_HWECC
---help---
Build in logic to support software calculation of ECC.
diff --git a/drivers/sensors/Kconfig b/drivers/sensors/Kconfig
index 22597fc161..b781a804c9 100644
--- a/drivers/sensors/Kconfig
+++ b/drivers/sensors/Kconfig
@@ -1008,7 +1008,7 @@ config SENSORS_LIS3MDL
config LM75_I2C
bool
- default y if LM75
+ default LM75
config SENSORS_LM75
bool "STMicro LM-75 Temperature Sensor support"
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index 7d1187f543..e26cbeb8bc 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -87,8 +87,7 @@ config RPMSG_UART
config STANDARD_SERIAL
bool "Enable standard \"upper-half\" serial driver"
- default y if MCU_SERIAL
- default n if !MCU_SERIAL
+ default MCU_SERIAL
---help---
Enable the standard, upper-half serial driver used by most MCU serial peripherals.
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 3395b63b60..fae2211d59 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -128,8 +128,7 @@ config SPI_CMDDATA
config SPI_CALLBACK
bool "Media change callbacks"
- default y if MMCSD_SPI
- default n if !MMCSD_SPI
+ default MMCSD_SPI
---help---
Support the callback method in the SPI interface. This will allow
the SPI-based MMC/SD driver to get a notification of changes in the
diff --git a/fs/fat/Kconfig b/fs/fat/Kconfig
index 5d4d05205c..f9b73a4d3e 100644
--- a/fs/fat/Kconfig
+++ b/fs/fat/Kconfig
@@ -183,8 +183,7 @@ config FAT_DMAMEMORY
config FAT_DIRECT_RETRY
bool "Direct transfer retry"
- default y if FAT_DMAMEMORY
- default n if !FAT_DMAMEMORY
+ default FAT_DMAMEMORY
depends on !FAT_FORCE_INDIRECT
---help---
The FAT file system contains internal, well aligned sector buffers
diff --git a/graphics/Kconfig b/graphics/Kconfig
index ce38e86317..a7ac40c012 100644
--- a/graphics/Kconfig
+++ b/graphics/Kconfig
@@ -134,8 +134,7 @@ config NX_ANTIALIASING
config NX_WRITEONLY
bool "Write-only Graphics Device"
- default y if NX_LCDDRIVER && LCD_NOGETRUN
- default n if !NX_LCDDRIVER || !LCD_NOGETRUN
+ default NX_LCDDRIVER && LCD_NOGETRUN
---help---
Define if the underlying graphics device does not support read operations.
Automatically defined if NX_LCDDRIVER and LCD_NOGETRUN are
diff --git a/libs/libc/tls/Kconfig b/libs/libc/tls/Kconfig
index 511a3fb2e9..a67e6511d5 100644
--- a/libs/libc/tls/Kconfig
+++ b/libs/libc/tls/Kconfig
@@ -7,8 +7,7 @@ menu "Thread Local Storage (TLS)"
config TLS_ALIGNED
bool "Require stack alignment"
- default y if BUILD_KERNEL
- default n if !BUILD_KERNEL
+ default BUILD_KERNEL
---help---
Aligned TLS works by fetching thread information from the beginning
of the stack memory allocation. In order to do this, the memory
diff --git a/libs/libnx/nxfonts/Kconfig b/libs/libnx/nxfonts/Kconfig
index 3447c70c30..0b6b1ff6f1 100644
--- a/libs/libnx/nxfonts/Kconfig
+++ b/libs/libnx/nxfonts/Kconfig
@@ -333,8 +333,7 @@ menu "Font Cache Pixel Depths"
config NXFONTS_DISABLE_1BPP
bool "Disable 1 BPP"
- default y if NX_DISABLE_1BPP
- default n if !NX_DISABLE_1BPP
+ default NX_DISABLE_1BPP
---help---
NX supports a variety of pixel depths. You can save some memory by disabling
support for unused color depths. The selection disables support for 1BPP
@@ -342,8 +341,7 @@ config NXFONTS_DISABLE_1BPP
config NXFONTS_DISABLE_2BPP
bool "Disable 2 BPP"
- default y if NX_DISABLE_2BPP
- default n if !NX_DISABLE_2BPP
+ default NX_DISABLE_2BPP
---help---
NX supports a variety of pixel depths. You can save some memory by disabling
support for unused color depths. The selection disables support for 2BPP
@@ -351,8 +349,7 @@ config NXFONTS_DISABLE_2BPP
config NXFONTS_DISABLE_4BPP
bool "Disable 4 BPP"
- default y if NX_DISABLE_4BPP
- default n if !NX_DISABLE_4BPP
+ default NX_DISABLE_4BPP
---help---
NX supports a variety of pixel depths. You can save some memory by disabling
support for unused color depths. The selection disables support for 4BPP
@@ -360,8 +357,7 @@ config NXFONTS_DISABLE_4BPP
config NXFONTS_DISABLE_8BPP
bool "Disable 8 BPP"
- default y if NX_DISABLE_8BPP
- default n if !NX_DISABLE_8BPP
+ default NX_DISABLE_8BPP
---help---
NX supports a variety of pixel depths. You can save some memory by disabling
support for unused color depths. The selection disables support for 8BPP
@@ -369,8 +365,7 @@ config NXFONTS_DISABLE_8BPP
config NXFONTS_DISABLE_16BPP
bool "Disable 16 BPP"
- default y if NX_DISABLE_8BPP
- default n if !NX_DISABLE_8BPP
+ default NX_DISABLE_8BPP
---help---
NX supports a variety of pixel depths. You can save some memory by disabling
support for unused color depths. The selection disables support for 16BPP
@@ -378,8 +373,7 @@ config NXFONTS_DISABLE_16BPP
config NXFONTS_DISABLE_24BPP
bool "Disable 24 BPP"
- default y if NX_DISABLE_24BPP
- default n if !NX_DISABLE_24BPP
+ default NX_DISABLE_24BPP
---help---
NX supports a variety of pixel depths. You can save some memory by disabling
support for unused color depths. The selection disables support for 24BPP
@@ -387,8 +381,7 @@ config NXFONTS_DISABLE_24BPP
config NXFONTS_DISABLE_32BPP
bool "Disable 32 BPP"
- default y if NX_DISABLE_32BPP
- default n if !NX_DISABLE_32BPP
+ default NX_DISABLE_32BPP
---help---
NX supports a variety of pixel depths. You can save some memory by disabling
support for unused color depths. The selection disables support for 32BPP
@@ -396,8 +389,7 @@ config NXFONTS_DISABLE_32BPP
config NXFONTS_PACKEDMSFIRST
bool "Packed MS First"
- default y if !NX || NX_PACKEDMSFIRST
- default n if NX && !NX_PACKEDMSFIRST
+ default !NX || NX_PACKEDMSFIRST
select LCD_PACKEDMSFIRST if LCD
---help---
If a pixel depth of less than 8-bits is used, then NX needs to know if the
diff --git a/mm/Kconfig b/mm/Kconfig
index be3954b153..625983b92b 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -27,8 +27,7 @@ endchoice
config MM_KERNEL_HEAP
bool "Kernel dedicated heap"
- default n if BUILD_FLAT
- default y if BUILD_PROTECTED || BUILD_KERNEL
+ default BUILD_PROTECTED || BUILD_KERNEL
---help---
Under Flat build, this option will enable a separate heap for the kernel.
By separating the kernel and userspace heaps, the user is granted more
diff --git a/net/udp/Kconfig b/net/udp/Kconfig
index a0b48ee98d..e702423de3 100644
--- a/net/udp/Kconfig
+++ b/net/udp/Kconfig
@@ -30,8 +30,7 @@ config NET_BROADCAST
config NET_UDP_CHECKSUMS
bool "UDP checksums"
- default y if NET_IPv6
- default n if !NET_IPv6
+ default NET_IPv6
---help---
Enable/disable UDP checksum support. UDP checksum support is
REQUIRED for IPv6.
[nuttx] 02/04: Kconfig: Change some "default y" to "default !DEFAULT_SMALL"
Posted by ac...@apache.org.
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
commit e031a73aef7e0b9fc0e224aa99674a6abf606fcc
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Jul 16 00:44:32 2023 +0800
Kconfig: Change some "default y" to "default !DEFAULT_SMALL"
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/Kconfig | 2 +-
boards/arm/stm32/mikroe-stm32f4/configs/nx/defconfig | 1 -
boards/arm/stm32/mikroe-stm32f4/configs/nxlines/defconfig | 1 -
boards/arm/stm32/mikroe-stm32f4/configs/nxtext/defconfig | 1 -
boards/arm/stm32/nucleo-f302r8/configs/highpri/defconfig | 1 -
boards/arm/stm32/nucleo-f302r8/configs/nsh/defconfig | 1 -
boards/arm/stm32/nucleo-f334r8/configs/adc/defconfig | 1 -
boards/arm/stm32/nucleo-f334r8/configs/highpri/defconfig | 1 -
boards/arm/stm32/nucleo-f334r8/configs/nsh/defconfig | 1 -
boards/arm/stm32/nucleo-f334r8/configs/spwm1/defconfig | 1 -
boards/arm/stm32/nucleo-f334r8/configs/spwm2/defconfig | 1 -
boards/arm/stm32/nucleo-g431rb/configs/adc/defconfig | 1 -
boards/arm/stm32/olimexino-stm32/configs/can/defconfig | 1 -
boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig | 1 -
boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig | 1 -
boards/arm/stm32/stm32f103-minimum/configs/hello/defconfig | 1 -
boards/arm/stm32/stm32f334-disco/configs/buckboost/defconfig | 1 -
boards/arm/stm32/stm32f334-disco/configs/nsh/defconfig | 1 -
boards/arm/stm32/stm32f334-disco/configs/powerled/defconfig | 1 -
boards/arm/tlsr82/tlsr8278adk80d/configs/nsh/defconfig | 1 -
boards/risc-v/mpfs/icicle/configs/rpmsg-sbi/defconfig | 1 -
drivers/misc/Kconfig | 2 +-
fs/mmap/Kconfig | 2 +-
libs/libc/string/Kconfig | 2 +-
24 files changed, 4 insertions(+), 24 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index e589aa417b..b9ba607652 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -314,7 +314,7 @@ config ARCH_COVERAGE
config ARCH_COVERAGE_ALL
bool "Enable code coverage for the entire image"
depends on ARCH_COVERAGE
- default y
+ default n
---help---
This option activates code coverage instrumentation for the
entire image. If you don't enable this option, you have to
diff --git a/boards/arm/stm32/mikroe-stm32f4/configs/nx/defconfig b/boards/arm/stm32/mikroe-stm32f4/configs/nx/defconfig
index b476216b18..a9e8a0787a 100644
--- a/boards/arm/stm32/mikroe-stm32f4/configs/nx/defconfig
+++ b/boards/arm/stm32/mikroe-stm32f4/configs/nx/defconfig
@@ -7,7 +7,6 @@
#
# CONFIG_ARCH_FPU is not set
# CONFIG_DEV_CONSOLE is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_NSH_DISABLE_IFCONFIG is not set
# CONFIG_NSH_DISABLE_PS is not set
# CONFIG_NXFONTS_DISABLE_16BPP is not set
diff --git a/boards/arm/stm32/mikroe-stm32f4/configs/nxlines/defconfig b/boards/arm/stm32/mikroe-stm32f4/configs/nxlines/defconfig
index e13f2fbdc9..90bc0f8e9c 100644
--- a/boards/arm/stm32/mikroe-stm32f4/configs/nxlines/defconfig
+++ b/boards/arm/stm32/mikroe-stm32f4/configs/nxlines/defconfig
@@ -7,7 +7,6 @@
#
# CONFIG_ARCH_FPU is not set
# CONFIG_DEV_CONSOLE is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_EXAMPLES_NXLINES_DEFAULT_COLORS is not set
# CONFIG_NSH_DISABLE_IFCONFIG is not set
# CONFIG_NSH_DISABLE_PS is not set
diff --git a/boards/arm/stm32/mikroe-stm32f4/configs/nxtext/defconfig b/boards/arm/stm32/mikroe-stm32f4/configs/nxtext/defconfig
index 2caa1bb060..e394071b17 100644
--- a/boards/arm/stm32/mikroe-stm32f4/configs/nxtext/defconfig
+++ b/boards/arm/stm32/mikroe-stm32f4/configs/nxtext/defconfig
@@ -7,7 +7,6 @@
#
# CONFIG_ARCH_FPU is not set
# CONFIG_DEV_CONSOLE is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_NSH_DISABLE_IFCONFIG is not set
# CONFIG_NSH_DISABLE_PS is not set
# CONFIG_NXFONTS_DISABLE_16BPP is not set
diff --git a/boards/arm/stm32/nucleo-f302r8/configs/highpri/defconfig b/boards/arm/stm32/nucleo-f302r8/configs/highpri/defconfig
index 9bb36da170..87db1d2a41 100644
--- a/boards/arm/stm32/nucleo-f302r8/configs/highpri/defconfig
+++ b/boards/arm/stm32/nucleo-f302r8/configs/highpri/defconfig
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
-# CONFIG_DEV_NULL is not set
# CONFIG_LIBC_LONG_LONG is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-f302r8"
diff --git a/boards/arm/stm32/nucleo-f302r8/configs/nsh/defconfig b/boards/arm/stm32/nucleo-f302r8/configs/nsh/defconfig
index 7984a026ec..c85c987b34 100644
--- a/boards/arm/stm32/nucleo-f302r8/configs/nsh/defconfig
+++ b/boards/arm/stm32/nucleo-f302r8/configs/nsh/defconfig
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_ARCH_FPU is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_LIBC_LONG_LONG is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-f302r8"
diff --git a/boards/arm/stm32/nucleo-f334r8/configs/adc/defconfig b/boards/arm/stm32/nucleo-f334r8/configs/adc/defconfig
index e1c73e6fa3..e3bd74e410 100644
--- a/boards/arm/stm32/nucleo-f334r8/configs/adc/defconfig
+++ b/boards/arm/stm32/nucleo-f334r8/configs/adc/defconfig
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_ARCH_FPU is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_LIBC_LONG_LONG is not set
CONFIG_ADC=y
CONFIG_ANALOG=y
diff --git a/boards/arm/stm32/nucleo-f334r8/configs/highpri/defconfig b/boards/arm/stm32/nucleo-f334r8/configs/highpri/defconfig
index 69a7e8ed77..3eaaee9d59 100644
--- a/boards/arm/stm32/nucleo-f334r8/configs/highpri/defconfig
+++ b/boards/arm/stm32/nucleo-f334r8/configs/highpri/defconfig
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
-# CONFIG_DEV_NULL is not set
# CONFIG_LIBC_LONG_LONG is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-f334r8"
diff --git a/boards/arm/stm32/nucleo-f334r8/configs/nsh/defconfig b/boards/arm/stm32/nucleo-f334r8/configs/nsh/defconfig
index 1a14d627d6..1b099eb83d 100644
--- a/boards/arm/stm32/nucleo-f334r8/configs/nsh/defconfig
+++ b/boards/arm/stm32/nucleo-f334r8/configs/nsh/defconfig
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_ARCH_FPU is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_LIBC_LONG_LONG is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-f334r8"
diff --git a/boards/arm/stm32/nucleo-f334r8/configs/spwm1/defconfig b/boards/arm/stm32/nucleo-f334r8/configs/spwm1/defconfig
index 610eab3b3a..0b6a66f894 100644
--- a/boards/arm/stm32/nucleo-f334r8/configs/spwm1/defconfig
+++ b/boards/arm/stm32/nucleo-f334r8/configs/spwm1/defconfig
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
-# CONFIG_DEV_NULL is not set
# CONFIG_LIBC_LONG_LONG is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-f334r8"
diff --git a/boards/arm/stm32/nucleo-f334r8/configs/spwm2/defconfig b/boards/arm/stm32/nucleo-f334r8/configs/spwm2/defconfig
index b6d87a75fe..1773bcac52 100644
--- a/boards/arm/stm32/nucleo-f334r8/configs/spwm2/defconfig
+++ b/boards/arm/stm32/nucleo-f334r8/configs/spwm2/defconfig
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
-# CONFIG_DEV_NULL is not set
# CONFIG_LIBC_LONG_LONG is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="nucleo-f334r8"
diff --git a/boards/arm/stm32/nucleo-g431rb/configs/adc/defconfig b/boards/arm/stm32/nucleo-g431rb/configs/adc/defconfig
index b443ace854..b6902d1f74 100644
--- a/boards/arm/stm32/nucleo-g431rb/configs/adc/defconfig
+++ b/boards/arm/stm32/nucleo-g431rb/configs/adc/defconfig
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_ARCH_FPU is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_LIBC_LONG_LONG is not set
CONFIG_ADC=y
CONFIG_ANALOG=y
diff --git a/boards/arm/stm32/olimexino-stm32/configs/can/defconfig b/boards/arm/stm32/olimexino-stm32/configs/can/defconfig
index 25bf6a4e27..0b72171359 100644
--- a/boards/arm/stm32/olimexino-stm32/configs/can/defconfig
+++ b/boards/arm/stm32/olimexino-stm32/configs/can/defconfig
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
-# CONFIG_DEV_NULL is not set
# CONFIG_DISABLE_OS_API is not set
# CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set
# CONFIG_NSH_DISABLE_CMP is not set
diff --git a/boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig b/boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig
index 03d917b889..5ca9fb2d12 100644
--- a/boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig
+++ b/boards/arm/stm32/olimexino-stm32/configs/smallnsh/defconfig
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
-# CONFIG_DEV_NULL is not set
# CONFIG_DISABLE_OS_API is not set
# CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set
# CONFIG_NSH_DISABLE_HEXDUMP is not set
diff --git a/boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig b/boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig
index 208c4f673c..42bff22b90 100644
--- a/boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig
+++ b/boards/arm/stm32/olimexino-stm32/configs/tiny/defconfig
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_ARCH_LEDS is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_DISABLE_OS_API is not set
# CONFIG_STM32_USE_LEGACY_PINMAP is not set
CONFIG_ARCH="arm"
diff --git a/boards/arm/stm32/stm32f103-minimum/configs/hello/defconfig b/boards/arm/stm32/stm32f103-minimum/configs/hello/defconfig
index 35ecf43b4b..44abdc6efb 100644
--- a/boards/arm/stm32/stm32f103-minimum/configs/hello/defconfig
+++ b/boards/arm/stm32/stm32f103-minimum/configs/hello/defconfig
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_ARCH_LEDS is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_NSH_DISABLEBG is not set
# CONFIG_NSH_DISABLE_DF is not set
# CONFIG_NSH_DISABLE_EXEC is not set
diff --git a/boards/arm/stm32/stm32f334-disco/configs/buckboost/defconfig b/boards/arm/stm32/stm32f334-disco/configs/buckboost/defconfig
index 8d7ab2d2d4..f937129bd2 100644
--- a/boards/arm/stm32/stm32f334-disco/configs/buckboost/defconfig
+++ b/boards/arm/stm32/stm32f334-disco/configs/buckboost/defconfig
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
-# CONFIG_DEV_NULL is not set
CONFIG_ADC=y
CONFIG_ANALOG=y
CONFIG_ARCH="arm"
diff --git a/boards/arm/stm32/stm32f334-disco/configs/nsh/defconfig b/boards/arm/stm32/stm32f334-disco/configs/nsh/defconfig
index 1df4cb587c..fb48a39013 100644
--- a/boards/arm/stm32/stm32f334-disco/configs/nsh/defconfig
+++ b/boards/arm/stm32/stm32f334-disco/configs/nsh/defconfig
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_ARCH_FPU is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_LIBC_LONG_LONG is not set
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="stm32f334-disco"
diff --git a/boards/arm/stm32/stm32f334-disco/configs/powerled/defconfig b/boards/arm/stm32/stm32f334-disco/configs/powerled/defconfig
index fefc0b1602..3937bcb12f 100644
--- a/boards/arm/stm32/stm32f334-disco/configs/powerled/defconfig
+++ b/boards/arm/stm32/stm32f334-disco/configs/powerled/defconfig
@@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_ARCH_FPU is not set
-# CONFIG_DEV_NULL is not set
# CONFIG_DISABLE_POSIX_TIMERS is not set
# CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set
# CONFIG_NSH_DISABLEBG is not set
diff --git a/boards/arm/tlsr82/tlsr8278adk80d/configs/nsh/defconfig b/boards/arm/tlsr82/tlsr8278adk80d/configs/nsh/defconfig
index ed915a5f5d..95381ac244 100644
--- a/boards/arm/tlsr82/tlsr8278adk80d/configs/nsh/defconfig
+++ b/boards/arm/tlsr82/tlsr8278adk80d/configs/nsh/defconfig
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
-# CONFIG_DEV_NULL is not set
# CONFIG_DISABLE_ENVIRON is not set
# CONFIG_DISABLE_MQUEUE is not set
# CONFIG_DISABLE_POSIX_TIMERS is not set
diff --git a/boards/risc-v/mpfs/icicle/configs/rpmsg-sbi/defconfig b/boards/risc-v/mpfs/icicle/configs/rpmsg-sbi/defconfig
index 6da5fc09af..15a0ce5127 100644
--- a/boards/risc-v/mpfs/icicle/configs/rpmsg-sbi/defconfig
+++ b/boards/risc-v/mpfs/icicle/configs/rpmsg-sbi/defconfig
@@ -5,7 +5,6 @@
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
-# CONFIG_DEV_NULL is not set
# CONFIG_DISABLE_OS_API is not set
# CONFIG_NDEBUG is not set
# CONFIG_NSH_DISABLE_MW is not set
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 6077d24561..b7e7949e2b 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -9,7 +9,7 @@ config DEV_SIMPLE_ADDRENV
config DEV_NULL
bool "Enable /dev/null"
- default y
+ default !DEFAULT_SMALL
config DEV_ZERO
bool "Enable /dev/zero"
diff --git a/fs/mmap/Kconfig b/fs/mmap/Kconfig
index 6732b8e89d..dbe87b5d3e 100644
--- a/fs/mmap/Kconfig
+++ b/fs/mmap/Kconfig
@@ -25,6 +25,6 @@ config FS_RAMMAP
config FS_ANONMAP
bool "Anonymous mapping emulation"
- default y
+ default !DEFAULT_SMALL
---help---
Simulate private anonymous mappings by plain malloc
diff --git a/libs/libc/string/Kconfig b/libs/libc/string/Kconfig
index 80cc50508d..e7180cddff 100644
--- a/libs/libc/string/Kconfig
+++ b/libs/libc/string/Kconfig
@@ -30,7 +30,7 @@ config LIBC_STRERROR_SHORT
config LIBC_STRERROR_ERRNUM
bool "Print unknown error code in strerror()"
- default !LIBC_STRERROR
+ default !LIBC_STRERROR && !DEFAULT_SMALL
---help---
If this option is selected, then strerror() will print error code
for unknown errors like "Unknown error 101". Default enabled when
[nuttx] 04/04: arch: Fix the mismath in comment
Posted by ac...@apache.org.
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
commit 427f8a162432ab352740b7abcf39da45ce410bd4
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Jul 16 00:20:15 2023 +0800
arch: Fix the mismath in comment
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/hc/src/common/hc_copystate.c | 2 +-
arch/renesas/src/common/renesas_internal.h | 1 -
arch/x86/src/common/x86_copystate.c | 2 +-
arch/x86_64/src/common/x86_64_copystate.c | 2 +-
4 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/hc/src/common/hc_copystate.c b/arch/hc/src/common/hc_copystate.c
index 155aa9637f..d7e62d2c71 100644
--- a/arch/hc/src/common/hc_copystate.c
+++ b/arch/hc/src/common/hc_copystate.c
@@ -46,7 +46,7 @@
****************************************************************************/
/****************************************************************************
- * Name: up_undefinedinsn
+ * Name: hc_copystate
****************************************************************************/
/* A little faster than most memcpy's */
diff --git a/arch/renesas/src/common/renesas_internal.h b/arch/renesas/src/common/renesas_internal.h
index 7a93b67bd8..16fdce1f9e 100644
--- a/arch/renesas/src/common/renesas_internal.h
+++ b/arch/renesas/src/common/renesas_internal.h
@@ -147,7 +147,6 @@ void renesas_fullcontextrestore(uint32_t *regs) noreturn_function;
void renesas_prefetchabort(uint32_t *regs);
void renesas_sigdeliver(void);
void renesas_syscall(uint32_t *regs);
-void renesas_undefinedinsn(uint32_t *regs);
void renesas_lowputc(char ch);
void renesas_lowputs(const char *str);
diff --git a/arch/x86/src/common/x86_copystate.c b/arch/x86/src/common/x86_copystate.c
index 213177217a..01ed581ca7 100644
--- a/arch/x86/src/common/x86_copystate.c
+++ b/arch/x86/src/common/x86_copystate.c
@@ -46,7 +46,7 @@
****************************************************************************/
/****************************************************************************
- * Name: x86_undefinedinsn
+ * Name: x86_copystate
****************************************************************************/
/* A little faster than most memcpy's */
diff --git a/arch/x86_64/src/common/x86_64_copystate.c b/arch/x86_64/src/common/x86_64_copystate.c
index 46fea2abf8..a460d09d6f 100644
--- a/arch/x86_64/src/common/x86_64_copystate.c
+++ b/arch/x86_64/src/common/x86_64_copystate.c
@@ -46,7 +46,7 @@
****************************************************************************/
/****************************************************************************
- * Name: x86_64_undefinedinsn
+ * Name: x86_64_copystate
****************************************************************************/
/* A little faster than most memcpy's */
[nuttx] 01/04: arch/sim: Link to libgcov.a when CONFIG_ARCH_COVERAGE is enabled
Posted by ac...@apache.org.
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
commit 4d8eedb09ae78c2cb1004ff4fb62a48e77175bda
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Jul 16 10:11:46 2023 +0800
arch/sim: Link to libgcov.a when CONFIG_ARCH_COVERAGE is enabled
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
arch/sim/src/Makefile | 4 ++++
arch/sim/src/sim/CMakeLists.txt | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile
index 0ad0520173..a58013f8b3 100644
--- a/arch/sim/src/Makefile
+++ b/arch/sim/src/Makefile
@@ -110,6 +110,10 @@ ifeq ($(CONFIG_LIBM_TOOLCHAIN),y)
STDLIBS += -lm
endif
+ifeq ($(CONFIG_ARCH_COVERAGE),y)
+ STDLIBS += -lgcov
+endif
+
ifeq ($(CONFIG_STACK_COLORATION),y)
CSRCS += sim_checkstack.c
endif
diff --git a/arch/sim/src/sim/CMakeLists.txt b/arch/sim/src/sim/CMakeLists.txt
index 0babbd8e9d..84d6fd6760 100644
--- a/arch/sim/src/sim/CMakeLists.txt
+++ b/arch/sim/src/sim/CMakeLists.txt
@@ -27,6 +27,10 @@ set(HOSTSRCS)
set(HOST_INCLUDE_DIRS)
set(STDLIBS pthread)
+if(CONFIG_ARCH_COVERAGE)
+ list(APPEND STDLIBS gcov)
+endif()
+
list(APPEND HOST_DEFINITIONS -D__SIM__)
# common guest sources