Kconfig: Simplify the conditional default statement

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-07-16 01:04:21 +08:00 committed by Alan Carvalho de Assis
parent e031a73aef
commit abfe082a6f
55 changed files with 118 additions and 187 deletions

View File

@ -667,8 +667,7 @@ endif # ARCH_STACK_DYNAMIC
config ARCH_KERNEL_STACK config ARCH_KERNEL_STACK
bool "Kernel process stack" bool "Kernel process stack"
default n if !LIBC_EXECFUNCS default LIBC_EXECFUNCS
default y if LIBC_EXECFUNCS
depends on BUILD_KERNEL depends on BUILD_KERNEL
---help--- ---help---
It this option is selected, then every user process will have two It this option is selected, then every user process will have two

View File

@ -15,7 +15,7 @@ config ARMV7M_HAVE_DCACHE
config ARMV7M_USEBASEPRI config ARMV7M_USEBASEPRI
bool "Use BASEPRI Register" bool "Use BASEPRI Register"
default y if ARCH_HIPRI_INTERRUPT default ARCH_HIPRI_INTERRUPT
depends on ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7 depends on ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7
---help--- ---help---
Use the BASEPRI register to enable and disable interrupts. By Use the BASEPRI register to enable and disable interrupts. By
@ -88,8 +88,7 @@ config ARMV7M_DTCM
config ARMV7M_TARGET2_PREL config ARMV7M_TARGET2_PREL
bool "R_ARM_TARGET2 is PC relative" bool "R_ARM_TARGET2 is PC relative"
default n if !CXX_EXCEPTION default CXX_EXCEPTION
default y if CXX_EXCEPTION
depends on LIBC_ARCH_ELF depends on LIBC_ARCH_ELF
---help--- ---help---
Perform a PC relative relocation for relocation type R_ARM_TARGET2 Perform a PC relative relocation for relocation type R_ARM_TARGET2

View File

@ -33,8 +33,7 @@ config ARMV7R_HAVE_PTM
config ARMV7R_MEMINIT config ARMV7R_MEMINIT
bool bool
default y if BOOT_SDRAM_DATA default BOOT_SDRAM_DATA
default n if !BOOT_SDRAM_DATA
---help--- ---help---
If this configuration *not* selected, then it is assumed that all If this configuration *not* selected, then it is assumed that all
memory resources are initialized via arm_data_initialize() and memory resources are initialized via arm_data_initialize() and

View File

@ -15,7 +15,7 @@ config ARMV8M_HAVE_DCACHE
config ARMV8M_USEBASEPRI config ARMV8M_USEBASEPRI
bool "Use BASEPRI Register" bool "Use BASEPRI Register"
default y if ARCH_HIPRI_INTERRUPT default ARCH_HIPRI_INTERRUPT
---help--- ---help---
Use the BASEPRI register to enable and disable interrupts. By Use the BASEPRI register to enable and disable interrupts. By
default, the PRIMASK register is used for this purpose. This default, the PRIMASK register is used for this purpose. This
@ -69,8 +69,7 @@ config ARMV8M_DTCM
config ARMV8M_TARGET2_PREL config ARMV8M_TARGET2_PREL
bool "R_ARM_TARGET2 is PC relative" bool "R_ARM_TARGET2 is PC relative"
default n if !CXX_EXCEPTION default CXX_EXCEPTION
default y if CXX_EXCEPTION
depends on LIBC_ARCH_ELF depends on LIBC_ARCH_ELF
---help--- ---help---
Perform a PC relative relocation for relocation type R_ARM_TARGET2 Perform a PC relative relocation for relocation type R_ARM_TARGET2

View File

@ -26,8 +26,7 @@ endif # ARMV8R_GIC_EOIMODE
config ARMV8R_MEMINIT config ARMV8R_MEMINIT
bool bool
default y if BOOT_SDRAM_DATA default BOOT_SDRAM_DATA
default n if !BOOT_SDRAM_DATA
---help--- ---help---
If this configuration *not* selected, then it is assumed that all If this configuration *not* selected, then it is assumed that all
memory resources are initialized via arm_data_initialize() and memory resources are initialized via arm_data_initialize() and

View File

@ -68,12 +68,11 @@ config CXD56_XOSC_CLOCK
config CXD56_SPH config CXD56_SPH
bool bool
default y if ASMP default ASMP
config CXD56_PMIC config CXD56_PMIC
bool bool
default y if CXD56_MAINCORE default CXD56_MAINCORE
default n if CXD56_SUBCORE
if CXD56_PMIC if CXD56_PMIC
@ -106,8 +105,7 @@ config CXD56_CPUFIFO_NBUFFERS
config CXD56_FARAPI config CXD56_FARAPI
bool bool
default y if CXD56_MAINCORE default CXD56_MAINCORE
default n if CXD56_SUBCORE
menu "Far API Configuration" menu "Far API Configuration"
depends on CXD56_FARAPI depends on CXD56_FARAPI
@ -1164,8 +1162,7 @@ menu "Storage Options"
menuconfig CXD56_SFC menuconfig CXD56_SFC
bool "SPI Flash" bool "SPI Flash"
default n if CXD56_SUBCORE default !CXD56_SUBCORE
default y
select MTD select MTD
if CXD56_SFC if CXD56_SFC
@ -1256,7 +1253,7 @@ endif # SPISD Configuration
config CXD56_EMMC config CXD56_EMMC
bool "eMMC" bool "eMMC"
default n if CXD56_SUBCORE default n
---help--- ---help---
Emmc driver for cxd56xx chip Emmc driver for cxd56xx chip
@ -1377,8 +1374,7 @@ if CXD56_TESTSET
config CXD56_TESTSET_WITH_HWSEM config CXD56_TESTSET_WITH_HWSEM
bool "Use custom testset based on hardware semaphore" bool "Use custom testset based on hardware semaphore"
default n if CXD56_USE_SYSBUS default !CXD56_USE_SYSBUS
default y if !CXD56_USE_SYSBUS
endif endif

View File

@ -870,7 +870,7 @@ static ssize_t cxd56_emmc_read(struct inode *inode,
DEBUGASSERT(inode && inode->i_private); DEBUGASSERT(inode && inode->i_private);
priv = (struct cxd56_emmc_state_s *)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); start_sector, nsectors, buffer);
ret = cxd56_emmc_readsectors(priv, buffer, start_sector, nsectors); ret = cxd56_emmc_readsectors(priv, buffer, start_sector, nsectors);

View File

@ -691,7 +691,7 @@ config ARCH_BOARD_GD32F4_CUSTOM_CLOCKCONFIG
config GD32F4_TCMEXCLUDE config GD32F4_TCMEXCLUDE
bool "Exclude TCM SRAM from the heap" 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 depends on GD32F4_HAVE_TCM
---help--- ---help---
Exclude TCM SRAM from the HEAP because it cannot be used for DMA 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 config GD32F4_ADC0_SCAN
bool "ADC0 scan mode" bool "ADC0 scan mode"
depends on GD32F4_ADC0 depends on GD32F4_ADC0
default y if GD32F4_ADC0_DMA default GD32F4_ADC0_DMA
default n
config GD32F4_ADC0_DMA_CFG config GD32F4_ADC0_DMA_CFG
int "ADC0 DMA configuration" int "ADC0 DMA configuration"
@ -1226,8 +1225,7 @@ config GD32F4_ADC1_DMA
config GD32F4_ADC1_SCAN config GD32F4_ADC1_SCAN
bool "ADC1 scan mode" bool "ADC1 scan mode"
depends on GD32F4_ADC1 depends on GD32F4_ADC1
default y if GD32F4_ADC1_DMA default GD32F4_ADC1_DMA
default n
config GD32F4_ADC1_DMA_CFG config GD32F4_ADC1_DMA_CFG
int "ADC1 DMA configuration" int "ADC1 DMA configuration"
@ -1260,8 +1258,7 @@ config GD32F4_ADC2_DMA
config GD32F4_ADC2_SCAN config GD32F4_ADC2_SCAN
bool "ADC2 scan mode" bool "ADC2 scan mode"
depends on GD32F4_ADC2 depends on GD32F4_ADC2
default y if GD32F4_ADC2_DMA default GD32F4_ADC2_DMA
default n
config GD32F4_ADC2_DMA_CFG config GD32F4_ADC2_DMA_CFG
int "ADC2 DMA configuration" int "ADC2 DMA configuration"
@ -2504,7 +2501,7 @@ config GD32F4_ENET_PTP
config GD32F4_RMII config GD32F4_RMII
bool "Use the reduced media-independent interface (RMII) interface" bool "Use the reduced media-independent interface (RMII) interface"
default y if !GD32F4_MII default !GD32F4_MII
---help--- ---help---
Select Ethernet MII interface. The application can only select one of Select Ethernet MII interface. The application can only select one of
the MII or RMII mode. the MII or RMII mode.
@ -2566,8 +2563,7 @@ comment "USB Device Configuration"
config GD32F4_USB_ITRMP config GD32F4_USB_ITRMP
bool "Re-map USB interrupt" bool "Re-map USB interrupt"
default n if !GD32F4_CAN1 default GD32F4_CAN1
default y if GD32F4_CAN1
depends on GD32F4_USB && GD32F4_GD32F4XX depends on GD32F4_USB && GD32F4_GD32F4XX
---help--- ---help---
The legacy USB in the F1 series shared interrupt lines with USB The legacy USB in the F1 series shared interrupt lines with USB

View File

@ -147,8 +147,7 @@ config IMX_ENET_NTXBUFFERS
config IMX_ENET_ENHANCEDBD config IMX_ENET_ENHANCEDBD
bool # not optional bool # not optional
default n if ARMV7A_DCACHE_DISABLE default !ARMV7A_DCACHE_DISABLE
default y if !ARMV7A_DCACHE_DISABLE
config IMX_ENET_NETHIFS config IMX_ENET_NETHIFS
int # Not optional int # Not optional

View File

@ -2191,8 +2191,7 @@ config IMXRT_ENET_NTXBUFFERS
config IMXRT_ENET_ENHANCEDBD config IMXRT_ENET_ENHANCEDBD
bool # not optional bool # not optional
default n if ARMV7M_DCACHE_WRITETHROUGH default !ARMV7M_DCACHE_WRITETHROUGH
default y if !ARMV7M_DCACHE_WRITETHROUGH
config IMXRT_ENET_NETHIFS config IMXRT_ENET_NETHIFS
int # Not optional int # Not optional

View File

@ -784,7 +784,7 @@ menu "SDCARD Configuration"
config LPC17_40_SDCARD_DMA config LPC17_40_SDCARD_DMA
bool "Support DMA data transfers" bool "Support DMA data transfers"
default y if LPC17_40_GPDMA default LPC17_40_GPDMA
select SDIO_DMA select SDIO_DMA
depends on LPC17_40_GPDMA depends on LPC17_40_GPDMA
---help--- ---help---
@ -867,8 +867,7 @@ config LPC17_40_ETH_HASH
config LPC17_40_MULTICAST config LPC17_40_MULTICAST
bool "Multicast" bool "Multicast"
default y if NET_MCASTGROUP default NET_MCASTGROUP
default n if !NET_MCASTGROUP
---help--- ---help---
Enable receipt of multicast (and unicast) frames. Automatically set Enable receipt of multicast (and unicast) frames. Automatically set
if NET_MCASTGROUP is selected. if NET_MCASTGROUP is selected.

View File

@ -77,48 +77,48 @@ endchoice # LPC43XX Chip Selection
config ARCH_FAMILY_LPC4310 config ARCH_FAMILY_LPC4310
bool bool
default y if ARCH_CHIP_LPC4310FBD144 || ARCH_CHIP_LPC4310FET100 default ARCH_CHIP_LPC4310FBD144 || ARCH_CHIP_LPC4310FET100
select ARCH_HAVE_TICKLESS select ARCH_HAVE_TICKLESS
config ARCH_FAMILY_LPC4320 config ARCH_FAMILY_LPC4320
bool bool
default y if ARCH_CHIP_LPC4320FBD144 || ARCH_CHIP_LPC4320FET100 default ARCH_CHIP_LPC4320FBD144 || ARCH_CHIP_LPC4320FET100
select ARCH_HAVE_TICKLESS select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1 select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4330 config ARCH_FAMILY_LPC4330
bool 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_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1 select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4337 config ARCH_FAMILY_LPC4337
bool bool
default y if ARCH_CHIP_LPC4337JBD144 || ARCH_CHIP_LPC4337FET256 default ARCH_CHIP_LPC4337JBD144 || ARCH_CHIP_LPC4337FET256
select ARCH_HAVE_TICKLESS select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1 select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4350 config ARCH_FAMILY_LPC4350
bool 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_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1 select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4353 config ARCH_FAMILY_LPC4353
bool 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_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1 select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4357 config ARCH_FAMILY_LPC4357
bool 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_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1 select ARCH_HAVE_AHB_SRAM_BANK1
config ARCH_FAMILY_LPC4370 config ARCH_FAMILY_LPC4370
bool bool
default y if ARCH_CHIP_LPC4370FET100 default ARCH_CHIP_LPC4370FET100
select ARCH_HAVE_TICKLESS select ARCH_HAVE_TICKLESS
select ARCH_HAVE_AHB_SRAM_BANK1 select ARCH_HAVE_AHB_SRAM_BANK1
@ -656,7 +656,7 @@ config LPC43_PHYSR_100FD
config LPC43_RMII config LPC43_RMII
bool bool
default y if !LPC43_MII default !LPC43_MII
config LPC43_ETHERNET_REGDEBUG config LPC43_ETHERNET_REGDEBUG
bool "Register-Level Debug" bool "Register-Level Debug"

View File

@ -867,8 +867,7 @@ config LPC54_ETH_RX_BROADCAST
config LPC54_ETH_RX_ALLMULTICAST config LPC54_ETH_RX_ALLMULTICAST
bool "Accept all multicast packets" bool "Accept all multicast packets"
default y if NET_BROADCAST default NET_BROADCAST
default n if !NET_BROADCAST
---help--- ---help---
If selected, all received frames with a multicast destination If selected, all received frames with a multicast destination
address (first bit in the destination address field is '1') are address (first bit in the destination address field is '1') are

View File

@ -828,8 +828,7 @@ config NRF52_SDC_LE_2M_PHY
config NRF52_SDC_LE_CODED_PHY config NRF52_SDC_LE_CODED_PHY
bool "Support LE Coded PHY" bool "Support LE Coded PHY"
default n if ARCH_CHIP_NRF52832 default ARCH_CHIP_NRF52840
default y if ARCH_CHIP_NRF52840
depends on NRF52_SDC_MULTIROLE depends on NRF52_SDC_MULTIROLE
config NRF52_SDC_DLE config NRF52_SDC_DLE

View File

@ -164,7 +164,7 @@ config NRF53_SPI_MASTER
config NRF53_IPC config NRF53_IPC
bool bool
default y if RPTUN default RPTUN
config NRF53_UART config NRF53_UART
bool bool
@ -375,7 +375,7 @@ endif # NRF53_USE_HFCLK192M
config NRF53_OSCILLATOR_LFXO config NRF53_OSCILLATOR_LFXO
bool "Configure LFXO oscillator" bool "Configure LFXO oscillator"
default y if NRF53_LFCLK_XTAL default NRF53_LFCLK_XTAL
depends on NRF53_APPCORE depends on NRF53_APPCORE
---help--- ---help---
Configure LFXO oscillator Configure LFXO oscillator
@ -777,8 +777,7 @@ config NRF53_SDC_LE_2M_PHY
config NRF53_SDC_LE_CODED_PHY config NRF53_SDC_LE_CODED_PHY
bool "Support LE Coded PHY" bool "Support LE Coded PHY"
default n if ARCH_CHIP_NRF53832 default ARCH_CHIP_NRF53840
default y if ARCH_CHIP_NRF53840
depends on NRF53_SDC_MULTIROLE depends on NRF53_SDC_MULTIROLE
config NRF53_SDC_DLE config NRF53_SDC_DLE

View File

@ -437,8 +437,7 @@ config SAM34_NAND
config SAM34_OCD config SAM34_OCD
bool "On-chip DEBUG (OCD)" bool "On-chip DEBUG (OCD)"
depends on ARCH_CHIP_SAM4L depends on ARCH_CHIP_SAM4L
default y if DEBUG_SYMBOLS default DEBUG_SYMBOLS
default n if !DEBUG_SYMBOLS
config SAM34_PARC config SAM34_PARC
bool "Parallel Capture (PARC)" bool "Parallel Capture (PARC)"
@ -1083,16 +1082,14 @@ config SAM34_TC5_TIOB
config SAM34_ONESHOT config SAM34_ONESHOT
bool "TC one-shot wrapper" bool "TC one-shot wrapper"
default n if !SCHED_TICKLESS default SCHED_TICKLESS
default y if SCHED_TICKLESS
---help--- ---help---
Enable a wrapper around the low level timer/counter functions to Enable a wrapper around the low level timer/counter functions to
support one-shot timer. support one-shot timer.
config SAM34_FREERUN config SAM34_FREERUN
bool "TC free-running wrapper" bool "TC free-running wrapper"
default n if !SCHED_TICKLESS default SCHED_TICKLESS
default y if SCHED_TICKLESS
---help--- ---help---
Enable a wrapper around the low level timer/counter functions to Enable a wrapper around the low level timer/counter functions to
support a free-running timer. support a free-running timer.

View File

@ -2572,8 +2572,7 @@ config SAMA5_EMAC_MII
config SAMA5_EMAC_RMII config SAMA5_EMAC_RMII
bool bool
default y if !SAMA5_EMAC_MII default !SAMA5_EMAC_MII
default n if SAMA5_EMAC_MII
config SAMA5_EMAC_AUTONEG config SAMA5_EMAC_AUTONEG
bool "Use autonegotiation" bool "Use autonegotiation"
@ -5056,16 +5055,14 @@ endif # SAMA5_TC2
config SAMA5_ONESHOT config SAMA5_ONESHOT
bool "TC one-shot wrapper" bool "TC one-shot wrapper"
default n if !SCHED_TICKLESS default SCHED_TICKLESS
default y if SCHED_TICKLESS
---help--- ---help---
Enable a wrapper around the low level timer/counter functions to Enable a wrapper around the low level timer/counter functions to
support one-shot timer. support one-shot timer.
config SAMA5_FREERUN config SAMA5_FREERUN
bool "TC free-running wrapper" bool "TC free-running wrapper"
default n if !SCHED_TICKLESS default SCHED_TICKLESS
default y if SCHED_TICKLESS
---help--- ---help---
Enable a wrapper around the low level timer/counter functions to Enable a wrapper around the low level timer/counter functions to
support a free-running timer. support a free-running timer.
@ -5360,8 +5357,7 @@ config SAMA5_WDT_INTERRUPT
config SAMA5_WDT_DEBUGHALT config SAMA5_WDT_DEBUGHALT
bool "Halt on DEBUG" bool "Halt on DEBUG"
default y if DEBUG_FEATURES default DEBUG_FEATURES
default n if !DEBUG_FEATURES
---help--- ---help---
Halt the watchdog timer in the debug state Halt the watchdog timer in the debug state
@ -6235,7 +6231,7 @@ endmenu # Heap Configuration
config SAMA5_SDMMC config SAMA5_SDMMC
bool "enable SDMMC controller" bool "enable SDMMC controller"
default y if SAMA5_HAVE_SDMMC default SAMA5_HAVE_SDMMC
select SDIO_DMA select SDIO_DMA
select SCHED_HPWORK select SCHED_HPWORK
select MMCSD select MMCSD

View File

@ -496,16 +496,14 @@ config SAMD5E5_TC7
config SAMD5E5_ONESHOT config SAMD5E5_ONESHOT
bool "TC one-shot wrapper" bool "TC one-shot wrapper"
default n if !SCHED_TICKLESS default SCHED_TICKLESS
default y if SCHED_TICKLESS
---help--- ---help---
Enable a wrapper around the low level timer/counter functions to Enable a wrapper around the low level timer/counter functions to
support one-shot timer. support one-shot timer.
config SAMD5E5_FREERUN config SAMD5E5_FREERUN
bool "TC free-running wrapper" bool "TC free-running wrapper"
default n if !SCHED_TICKLESS default SCHED_TICKLESS
default y if SCHED_TICKLESS
---help--- ---help---
Enable a wrapper around the low level timer/counter functions to Enable a wrapper around the low level timer/counter functions to
support a free-running timer. support a free-running timer.

View File

@ -1430,8 +1430,7 @@ config SAMV7_WDT_INTERRUPT
config SAMV7_WDT_DEBUGHALT config SAMV7_WDT_DEBUGHALT
bool "Halt on DEBUG" bool "Halt on DEBUG"
default y if DEBUG_FEATURES default DEBUG_FEATURES
default n if !DEBUG_FEATURES
---help--- ---help---
Halt the watchdog timer in the debug state Halt the watchdog timer in the debug state
@ -1464,8 +1463,7 @@ config SAMV7_RSWDT_INTERRUPT
config SAMV7_RSWDT_DEBUGHALT config SAMV7_RSWDT_DEBUGHALT
bool "Halt on DEBUG" bool "Halt on DEBUG"
default y if DEBUG_FEATURES default DEBUG_FEATURES
default n if !DEBUG_FEATURES
---help--- ---help---
Halt the watchdog timer in the debug state Halt the watchdog timer in the debug state
@ -2374,16 +2372,14 @@ endif # SAMV7_TC3
config SAMV7_ONESHOT config SAMV7_ONESHOT
bool "TC one-shot wrapper" bool "TC one-shot wrapper"
default n if !SCHED_TICKLESS default SCHED_TICKLESS
default y if SCHED_TICKLESS
---help--- ---help---
Enable a wrapper around the low level timer/counter functions to Enable a wrapper around the low level timer/counter functions to
support one-shot timer. support one-shot timer.
config SAMV7_FREERUN config SAMV7_FREERUN
bool "TC free-running wrapper" bool "TC free-running wrapper"
default n if !SCHED_TICKLESS default SCHED_TICKLESS
default y if SCHED_TICKLESS
---help--- ---help---
Enable a wrapper around the low level timer/counter functions to Enable a wrapper around the low level timer/counter functions to
support a free-running timer. support a free-running timer.

View File

@ -3693,7 +3693,7 @@ config STM32_FLASH_WORKAROUND_DATA_CACHE_CORRUPTION_ON_RWW
config STM32_FLASH_PREFETCH config STM32_FLASH_PREFETCH
bool "Enable FLASH Pre-fetch" bool "Enable FLASH Pre-fetch"
default y if STM32_STM32F427 || STM32_STM32F429 || STM32_STM32F446 default STM32_STM32F427 || STM32_STM32F429 || STM32_STM32F446
default n default n
depends on STM32_STM32F20XX || STM32_STM32F4XXX depends on STM32_STM32F20XX || STM32_STM32F4XXX
---help--- ---help---
@ -3764,7 +3764,7 @@ config STM32_I2SPLL
config STM32_CCMEXCLUDE config STM32_CCMEXCLUDE
bool "Exclude CCM SRAM from the heap" 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 depends on STM32_HAVE_CCM
---help--- ---help---
Exclude CCM SRAM from the HEAP because (1) it cannot be used for DMA 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 config STM32_DMACAPABLE
bool "Workaround non-DMA capable memory" bool "Workaround non-DMA capable memory"
depends on ARCH_DMA depends on ARCH_DMA
default y if STM32_STM32F4XXX && !STM32_CCMEXCLUDE default STM32_STM32F4XXX && !STM32_CCMEXCLUDE
default n if !STM32_STM32F4XXX || STM32_CCMEXCLUDE
---help--- ---help---
This option enables the DMA interface stm32_dmacapable that can be 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. 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 config STM32_ADC1_SCAN
bool "ADC1 scan mode" bool "ADC1 scan mode"
depends on STM32_ADC1 && STM32_HAVE_IP_ADC_V1 depends on STM32_ADC1 && STM32_HAVE_IP_ADC_V1
default y if STM32_ADC1_DMA default STM32_ADC1_DMA
default n default n
config STM32_ADC1_DMA_CFG config STM32_ADC1_DMA_CFG
@ -8610,7 +8609,7 @@ config STM32_ADC2_DMA
config STM32_ADC2_SCAN config STM32_ADC2_SCAN
bool "ADC2 scan mode" bool "ADC2 scan mode"
depends on STM32_ADC2 && STM32_HAVE_IP_ADC_V1 depends on STM32_ADC2 && STM32_HAVE_IP_ADC_V1
default y if STM32_ADC2_DMA default STM32_ADC2_DMA
default n default n
config STM32_ADC2_DMA_CFG config STM32_ADC2_DMA_CFG
@ -8643,7 +8642,7 @@ config STM32_ADC3_DMA
config STM32_ADC3_SCAN config STM32_ADC3_SCAN
bool "ADC3 scan mode" bool "ADC3 scan mode"
depends on STM32_ADC3 && STM32_HAVE_IP_ADC_V1 depends on STM32_ADC3 && STM32_HAVE_IP_ADC_V1
default y if STM32_ADC3_DMA default STM32_ADC3_DMA
default n default n
config STM32_ADC3_DMA_CFG config STM32_ADC3_DMA_CFG
@ -10582,8 +10581,7 @@ menu "I2C Configuration"
config STM32_I2C_ALT config STM32_I2C_ALT
bool "Alternate I2C implementation" bool "Alternate I2C implementation"
default n if !STM32_PERFORMANCELINE default STM32_PERFORMANCELINE
default y if STM32_PERFORMANCELINE
depends on !STM32_STM32F30XX depends on !STM32_STM32F30XX
---help--- ---help---
This selection enables an alternative I2C driver. This alternate This selection enables an alternative I2C driver. This alternate
@ -10659,8 +10657,7 @@ config STM32_SDIO_PULLUP
config STM32_SDIO_DMA config STM32_SDIO_DMA
bool "Support DMA data transfers" bool "Support DMA data transfers"
default y if STM32_DMA2 default STM32_DMA2
default n if !STM32_DMA2
select SDIO_DMA select SDIO_DMA
depends on STM32_DMA2 depends on STM32_DMA2
---help--- ---help---
@ -10932,7 +10929,7 @@ config STM32_ETH_PTP
config STM32_RMII config STM32_RMII
bool bool
default y if !STM32_MII default !STM32_MII
choice choice
prompt "RMII clock configuration" prompt "RMII clock configuration"
@ -11115,8 +11112,7 @@ endmenu
config STM32_USB_ITRMP config STM32_USB_ITRMP
bool "Re-map USB interrupt" bool "Re-map USB interrupt"
default n if !STM32_CAN1 default STM32_CAN1
default y if STM32_CAN1
depends on STM32_USB && STM32_STM32F30XX depends on STM32_USB && STM32_STM32F30XX
---help--- ---help---
The legacy USB in the F1 series shared interrupt lines with USB The legacy USB in the F1 series shared interrupt lines with USB

View File

@ -2677,7 +2677,7 @@ config STM32F7_CUSTOM_CLOCKCONFIG
config STM32F7_DTCMEXCLUDE config STM32F7_DTCMEXCLUDE
bool "Exclude DTCM SRAM from the heap" bool "Exclude DTCM SRAM from the heap"
default y if LIBC_ARCH_ELF default LIBC_ARCH_ELF
depends on ARMV7M_HAVE_DTCM depends on ARMV7M_HAVE_DTCM
---help--- ---help---
Exclude DTCM SRAM from the HEAP because it appears to be impossible Exclude DTCM SRAM from the HEAP because it appears to be impossible
@ -6217,7 +6217,7 @@ config STM32F7_ADC1_DMA
config STM32F7_ADC1_SCAN config STM32F7_ADC1_SCAN
bool "ADC1 scan mode" bool "ADC1 scan mode"
depends on STM32F7_ADC1 depends on STM32F7_ADC1
default y if STM32F7_ADC1_DMA default STM32F7_ADC1_DMA
default n default n
config STM32F7_ADC1_DMA_CFG config STM32F7_ADC1_DMA_CFG
@ -6250,8 +6250,7 @@ config STM32F7_ADC2_DMA
config STM32F7_ADC2_SCAN config STM32F7_ADC2_SCAN
bool "ADC2 scan mode" bool "ADC2 scan mode"
depends on STM32F7_ADC2 depends on STM32F7_ADC2
default y if STM32F7_ADC2_DMA default STM32F7_ADC2_DMA
default n
config STM32F7_ADC2_DMA_CFG config STM32F7_ADC2_DMA_CFG
int "ADC2 DMA configuration" int "ADC2 DMA configuration"
@ -6283,8 +6282,7 @@ config STM32F7_ADC3_DMA
config STM32F7_ADC3_SCAN config STM32F7_ADC3_SCAN
bool "ADC3 scan mode" bool "ADC3 scan mode"
depends on STM32F7_ADC3 depends on STM32F7_ADC3
default y if STM32F7_ADC3_DMA default STM32F7_ADC3_DMA
default n
config STM32F7_ADC3_DMA_CFG config STM32F7_ADC3_DMA_CFG
int "ADC3 DMA configuration" int "ADC3 DMA configuration"
@ -6543,7 +6541,7 @@ config STM32F7_ETH_PTP
config STM32F7_RMII config STM32F7_RMII
bool bool
default y if !STM32F7_MII default !STM32F7_MII
choice choice
prompt "RMII clock configuration" prompt "RMII clock configuration"

View File

@ -2101,7 +2101,7 @@ config STM32H7_SRAM4EXCLUDE
config STM32H7_DTCMEXCLUDE config STM32H7_DTCMEXCLUDE
bool "Exclude DTCM SRAM from the heap" bool "Exclude DTCM SRAM from the heap"
default y if LIBC_ARCH_ELF default LIBC_ARCH_ELF
depends on ARMV7M_HAVE_DTCM depends on ARMV7M_HAVE_DTCM
---help--- ---help---
Exclude DTCM SRAM from the HEAP because it appears to be impossible Exclude DTCM SRAM from the HEAP because it appears to be impossible
@ -5420,7 +5420,7 @@ config STM32H7_ETH_PTP
config STM32H7_RMII config STM32H7_RMII
bool bool
default y if !STM32H7_MII default !STM32H7_MII
choice choice
prompt "RMII clock configuration" prompt "RMII clock configuration"

View File

@ -1179,8 +1179,7 @@ config STM32WB_BLE_LE_2M_PHY
config STM32WB_BLE_LE_CODED_PHY config STM32WB_BLE_LE_CODED_PHY
bool "Support LE Coded PHY" bool "Support LE Coded PHY"
default y if STM32WB_STM32WB15 || STM32WB_STM32WB35 || STM32WB_STM32WB55 default STM32WB_STM32WB15 || STM32WB_STM32WB35 || STM32WB_STM32WB55
default n
depends on STM32WB_STM32WB15 || STM32WB_STM32WB35 || STM32WB_STM32WB55 depends on STM32WB_STM32WB15 || STM32WB_STM32WB35 || STM32WB_STM32WB55
config STM32WB_BLE_TTY_NAME config STM32WB_BLE_TTY_NAME

View File

@ -1099,7 +1099,7 @@ config PIC32MX_ETH_PRIORITY
config PIC32MX_MULTICAST config PIC32MX_MULTICAST
bool "Multicast" bool "Multicast"
default y if NET_MCASTGROUP default NET_MCASTGROUP
depends on PIC32MX_ETHERNET depends on PIC32MX_ETHERNET
---help--- ---help---
Enable receipt of multicast (and unicast) frames. Automatically set if Enable receipt of multicast (and unicast) frames. Automatically set if

View File

@ -1128,7 +1128,7 @@ config PIC32MZ_ETH_PRIORITY
config PIC32MZ_MULTICAST config PIC32MZ_MULTICAST
bool "Multicast" bool "Multicast"
default y if NET_MCASTGROUP default NET_MCASTGROUP
depends on PIC32MZ_ETHERNET depends on PIC32MZ_ETHERNET
---help--- ---help---
Enable receipt of multicast (and unicast) frames. Automatically set if Enable receipt of multicast (and unicast) frames. Automatically set if
@ -1147,8 +1147,7 @@ menu "Device Configuration 0 (DEVCFG0)"
config PIC32MZ_DEBUGGER_ENABLE config PIC32MZ_DEBUGGER_ENABLE
bool "Background debugger enable" bool "Background debugger enable"
default y if DEBUG_FEATURES default DEBUG_FEATURES
default n if !DEBUG_FEATURES
---help--- ---help---
Background Debugger Enable Background Debugger Enable
@ -1166,8 +1165,7 @@ config PIC32MZ_ICESEL_CH2
config PIC32MZ_TRACE_ENABLE config PIC32MZ_TRACE_ENABLE
bool "Trace enable" bool "Trace enable"
default y if DEBUG_FEATURES default DEBUG_FEATURES
default n if !DEBUG_FEATURES
---help--- ---help---
Trace Enable Trace Enable

View File

@ -227,7 +227,7 @@ endmenu # Potentially insecure options
config ESP32C3_SECURE_ROM_DL_MODE_ENABLED config ESP32C3_SECURE_ROM_DL_MODE_ENABLED
bool bool
default y if !ESP32C3_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT default !ESP32C3_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
choice ESP32C3_SECURE_UART_ROM_DL_MODE choice ESP32C3_SECURE_UART_ROM_DL_MODE
bool "UART ROM download mode" bool "UART ROM download mode"

View File

@ -238,7 +238,7 @@ config ESPRESSIF_GPIO_IRQ
config ESPRESSIF_HR_TIMER config ESPRESSIF_HR_TIMER
bool bool
default y if RTC_DRIVER default RTC_DRIVER
---help--- ---help---
A high-resolution hardware timer for supporting the management of A high-resolution hardware timer for supporting the management of
kernel events. kernel events.

View File

@ -105,7 +105,7 @@ config LITEX_SDIO
config LITEX_SDIO1 config LITEX_SDIO1
bool "Enable SDIO1" bool "Enable SDIO1"
default y if LITEX_SDIO default LITEX_SDIO
select LITEX_SDIO_DMA select LITEX_SDIO_DMA
depends on LITEX_SDIO depends on LITEX_SDIO

View File

@ -226,7 +226,7 @@ endmenu # Potentially insecure options
config ESP32S2_SECURE_ROM_DL_MODE_ENABLED config ESP32S2_SECURE_ROM_DL_MODE_ENABLED
bool bool
default y if !ESP32S2_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT default !ESP32S2_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT
choice ESP32S2_SECURE_UART_ROM_DL_MODE choice ESP32S2_SECURE_UART_ROM_DL_MODE
bool "UART ROM download mode" bool "UART ROM download mode"

View File

@ -47,8 +47,7 @@ config Z8_UART1
config Z8_TOOLCHAIN_ZDSII config Z8_TOOLCHAIN_ZDSII
bool bool
default y if ARCH_CHIP_Z8 default ARCH_CHIP_Z8
default n if !ARCH_CHIP_Z8
choice choice
prompt "ZDS-II Toolchain version" prompt "ZDS-II Toolchain version"

View File

@ -154,8 +154,7 @@ config AUDIO_EQUALIZER_NBANDS
config AUDIO_EXCLUDE_TONE config AUDIO_EXCLUDE_TONE
bool "Exclude tone (bass and treble) controls" bool "Exclude tone (bass and treble) controls"
default y if !AUDIO_EXCLUDE_EQUALIZER default !AUDIO_EXCLUDE_EQUALIZER
default n if AUDIO_EXCLUDE_EQUALIZER
---help--- ---help---
Exclude building support for changing the bass and treble. Normally Exclude building support for changing the bass and treble. Normally
you would not select both tone controls and equalizer support unless you would not select both tone controls and equalizer support unless
@ -183,8 +182,7 @@ config AUDIO_EXCLUDE_STOP
config AUDIO_EXCLUDE_FFORWARD config AUDIO_EXCLUDE_FFORWARD
bool "Exclude fast forward controls" bool "Exclude fast forward controls"
default n if !AUDIO_EXCLUDE_STOP default AUDIO_EXCLUDE_STOP
default y if AUDIO_EXCLUDE_STOP
---help--- ---help---
Exclude building support for fast forwarding through audio files Exclude building support for fast forwarding through audio files
once they are submitted. Selecting this option would only make once they are submitted. Selecting this option would only make

View File

@ -27,7 +27,7 @@ config SAMA5D27_GIANT_BOARD_USBHOST_PRIO
config SAMA5_SDMMC config SAMA5_SDMMC
bool "enable SDMMC controller" bool "enable SDMMC controller"
default y if SAMA5_HAVE_SDMMC default SAMA5_HAVE_SDMMC
select SDIO_DMA select SDIO_DMA
select SCHED_HPWORK select SCHED_HPWORK
select MMCSD select MMCSD
@ -41,7 +41,7 @@ config SAMA5_SDMMC
config SAMA5_SDMMC0 config SAMA5_SDMMC0
bool "Enable SDMMC0 (built-in eMMC)" bool "Enable SDMMC0 (built-in eMMC)"
default n if SAMA5_SDMMC default !SAMA5_SDMMC
depends on SAMA5_SDMMC depends on SAMA5_SDMMC
config SAMA5_SDMMC0_SIZE config SAMA5_SDMMC0_SIZE
@ -78,7 +78,7 @@ config SAMA5_SDMMC1_WIDTH_D1_D8
config SAMA5_SDMMC1 config SAMA5_SDMMC1
bool "Enable SDMMC1" bool "Enable SDMMC1"
default y if SAMA5_SDMMC default SAMA5_SDMMC
select SAMA5_SDMMC1_WIDTH_D1_D4 select SAMA5_SDMMC1_WIDTH_D1_D4
depends on SAMA5_SDMMC depends on SAMA5_SDMMC

View File

@ -36,7 +36,7 @@ config JUPITERNANO_USBHOST_PRIO
config SAMA5_SDMMC config SAMA5_SDMMC
bool "enable SDMMC controller" bool "enable SDMMC controller"
default y if SAMA5_HAVE_SDMMC default SAMA5_HAVE_SDMMC
select SDIO_DMA select SDIO_DMA
select SCHED_WORKQUEUE select SCHED_WORKQUEUE
select SCHED_HPWORK select SCHED_HPWORK
@ -52,7 +52,7 @@ config SAMA5_SDMMC
config SAMA5_SDMMC0 config SAMA5_SDMMC0
bool "Enable SDMMC0 (built-in eMMC)" bool "Enable SDMMC0 (built-in eMMC)"
default n if SAMA5_SDMMC default !SAMA5_SDMMC
depends on SAMA5_SDMMC depends on SAMA5_SDMMC
config SAMA5_SDMMC0_SIZE config SAMA5_SDMMC0_SIZE
@ -89,7 +89,7 @@ config SAMA5_SDMMC1_WIDTH_D1_D8
config SAMA5_SDMMC1 config SAMA5_SDMMC1
bool "Enable SDMMC1" bool "Enable SDMMC1"
default y if SAMA5_SDMMC default SAMA5_SDMMC
select SAMA5_SDMMC1_WIDTH_D1_D4 select SAMA5_SDMMC1_WIDTH_D1_D4
depends on SAMA5_SDMMC depends on SAMA5_SDMMC

View File

@ -36,7 +36,7 @@ config SAMA5D2XULT_USBHOST_PRIO
config SAMA5_SDMMC config SAMA5_SDMMC
bool "enable SDMMC controller" bool "enable SDMMC controller"
default y if SAMA5_HAVE_SDMMC default SAMA5_HAVE_SDMMC
select SDIO_DMA select SDIO_DMA
select SCHED_HPWORK select SCHED_HPWORK
select MMCSD select MMCSD
@ -49,7 +49,7 @@ config SAMA5_SDMMC
config SAMA5_SDMMC0 config SAMA5_SDMMC0
bool "Enable SDMMC0 (built-in eMMC)" bool "Enable SDMMC0 (built-in eMMC)"
default n if SAMA5_SDMMC default !SAMA5_SDMMC
depends on SAMA5_SDMMC depends on SAMA5_SDMMC
config SAMA5_SDMMC0_SIZE config SAMA5_SDMMC0_SIZE
@ -86,7 +86,7 @@ config SAMA5_SDMMC0_WIDTH_D1_D8
config SAMA5_SDMMC1 config SAMA5_SDMMC1
bool "Enable SDMMC1" bool "Enable SDMMC1"
default y if SAMA5_SDMMC default SAMA5_SDMMC
select SAMA5_SDMMC1_WIDTH_D1_D4 select SAMA5_SDMMC1_WIDTH_D1_D4
depends on SAMA5_SDMMC depends on SAMA5_SDMMC

View File

@ -22,8 +22,7 @@ endchoice # CPU Frequency
config SAMA5D3XPLAINED_SLOWCLOCK config SAMA5D3XPLAINED_SLOWCLOCK
bool bool
default y if SCHED_TICKLESS default SCHED_TICKLESS
default n if !SCHED_TICKLESS
choice choice
prompt "SAMA5D3-Xplained DRAM Type" prompt "SAMA5D3-Xplained DRAM Type"

View File

@ -261,8 +261,7 @@ endif # VIDEO_OV2640
config SAMA5D3XEK_SLOWCLOCK config SAMA5D3XEK_SLOWCLOCK
bool bool
default y if SCHED_TICKLESS default SCHED_TICKLESS
default n if !SCHED_TICKLESS
if AUDIO_WM8904 if AUDIO_WM8904

View File

@ -358,8 +358,7 @@ config SAMA5D4EK_CHANNEL
config SAMA5D4EK_SLOWCLOCK config SAMA5D4EK_SLOWCLOCK
bool bool
default y if SCHED_TICKLESS default SCHED_TICKLESS
default n if !SCHED_TICKLESS
if AUDIO_WM8904 if AUDIO_WM8904

View File

@ -12,8 +12,7 @@ if ARCH_BOARD_B_G474E_DPOW1
# #
#config SOME_CONFIG_BOOL #config SOME_CONFIG_BOOL
# bool "Description" # bool "Description"
# default n if !FEATURE_X # default FEATURE_X
# default y if FEATURE_X
# depends on FEATURE_Y # depends on FEATURE_Y
# ---help--- # ---help---
# Help text goes here. # Help text goes here.

View File

@ -20,8 +20,7 @@ endif # SENSORS_QENCODER
config NUCLEO_F446RE_AJOY_MINBUTTONS config NUCLEO_F446RE_AJOY_MINBUTTONS
bool "Minimal Joystick Buttons" bool "Minimal Joystick Buttons"
default n if !STM32_USART1 default STM32_USART1
default y if STM32_USART1
depends on INPUT_AJOYSTICK depends on INPUT_AJOYSTICK
---help--- ---help---
The Itead Joystick shield supports analog X/Y position and up to 5 The Itead Joystick shield supports analog X/Y position and up to 5

View File

@ -12,8 +12,7 @@ config NUCLEO_F401RE_QETIMER
config NUCLEO_F401RE_AJOY_MINBUTTONS config NUCLEO_F401RE_AJOY_MINBUTTONS
bool "Minimal Joystick Buttons" bool "Minimal Joystick Buttons"
default n if !STM32_USART1 default STM32_USART1
default y if STM32_USART1
depends on INPUT_AJOYSTICK depends on INPUT_AJOYSTICK
---help--- ---help---
The Itead Joystick shield supports analog X/Y position and up to 5 The Itead Joystick shield supports analog X/Y position and up to 5

View File

@ -12,8 +12,7 @@ if ARCH_BOARD_NUCLEO_G474RE
# #
#config SOME_CONFIG_BOOL #config SOME_CONFIG_BOOL
# bool "Description" # bool "Description"
# default n if !FEATURE_X # default FEATURE_X
# default y if FEATURE_X
# depends on FEATURE_Y # depends on FEATURE_Y
# ---help--- # ---help---
# Help text goes here. # Help text goes here.

View File

@ -7,8 +7,7 @@ if ARCH_BOARD_NUCLEO_L476RG
config NUCLEO_L476RG_AJOY_MINBUTTONS config NUCLEO_L476RG_AJOY_MINBUTTONS
bool "Minimal Joystick Buttons" bool "Minimal Joystick Buttons"
default n if !STM32_USART1 default STM32_USART1
default y if STM32_USART1
depends on INPUT_AJOYSTICK depends on INPUT_AJOYSTICK
---help--- ---help---
The Itead Joystick shield supports analog X/Y position and up to 5 The Itead Joystick shield supports analog X/Y position and up to 5

View File

@ -18,7 +18,7 @@ config LITEX_SDIO
config LITEX_SDIO1 config LITEX_SDIO1
bool "Enable SDIO1" bool "Enable SDIO1"
default y if LITEX_SDIO default LITEX_SDIO
select LITEX_SDIO_DMA select LITEX_SDIO_DMA
depends on LITEX_SDIO depends on LITEX_SDIO

View File

@ -960,7 +960,7 @@ config ST7565_MIRROR_X
config ST7565_MIRROR_Y config ST7565_MIRROR_Y
bool "ST7565 apply mirror on Y" bool "ST7565 apply mirror on Y"
default y if AQM_1248A default AQM_1248A
default n default n
---help--- ---help---
Mirror Y on LCD. Mirror Y on LCD.

View File

@ -100,8 +100,7 @@ if DRVR_WRITEBUFFER || DRVR_READAHEAD
config DRVR_READBYTES config DRVR_READBYTES
bool "Support byte read method" bool "Support byte read method"
default y if MTD_BYTE_WRITE default MTD_BYTE_WRITE
default n if !MTD_BYTE_WRITE
config DRVR_REMOVABLE config DRVR_REMOVABLE
bool "Support removable media" bool "Support removable media"

View File

@ -244,8 +244,7 @@ config MTD_NAND_BLOCKCHECK
config MTD_NAND_SWECC config MTD_NAND_SWECC
bool "Software ECC support" bool "Software ECC support"
default n if ARCH_NAND_HWECC default !ARCH_NAND_HWECC
default y if !ARCH_NAND_HWECC
---help--- ---help---
Build in logic to support software calculation of ECC. Build in logic to support software calculation of ECC.

View File

@ -1008,7 +1008,7 @@ config SENSORS_LIS3MDL
config LM75_I2C config LM75_I2C
bool bool
default y if LM75 default LM75
config SENSORS_LM75 config SENSORS_LM75
bool "STMicro LM-75 Temperature Sensor support" bool "STMicro LM-75 Temperature Sensor support"

View File

@ -87,8 +87,7 @@ config RPMSG_UART
config STANDARD_SERIAL config STANDARD_SERIAL
bool "Enable standard \"upper-half\" serial driver" bool "Enable standard \"upper-half\" serial driver"
default y if MCU_SERIAL default MCU_SERIAL
default n if !MCU_SERIAL
---help--- ---help---
Enable the standard, upper-half serial driver used by most MCU serial peripherals. Enable the standard, upper-half serial driver used by most MCU serial peripherals.

View File

@ -128,8 +128,7 @@ config SPI_CMDDATA
config SPI_CALLBACK config SPI_CALLBACK
bool "Media change callbacks" bool "Media change callbacks"
default y if MMCSD_SPI default MMCSD_SPI
default n if !MMCSD_SPI
---help--- ---help---
Support the callback method in the SPI interface. This will allow 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 the SPI-based MMC/SD driver to get a notification of changes in the

View File

@ -183,8 +183,7 @@ config FAT_DMAMEMORY
config FAT_DIRECT_RETRY config FAT_DIRECT_RETRY
bool "Direct transfer retry" bool "Direct transfer retry"
default y if FAT_DMAMEMORY default FAT_DMAMEMORY
default n if !FAT_DMAMEMORY
depends on !FAT_FORCE_INDIRECT depends on !FAT_FORCE_INDIRECT
---help--- ---help---
The FAT file system contains internal, well aligned sector buffers The FAT file system contains internal, well aligned sector buffers

View File

@ -134,8 +134,7 @@ config NX_ANTIALIASING
config NX_WRITEONLY config NX_WRITEONLY
bool "Write-only Graphics Device" bool "Write-only Graphics Device"
default y if NX_LCDDRIVER && LCD_NOGETRUN default NX_LCDDRIVER && LCD_NOGETRUN
default n if !NX_LCDDRIVER || !LCD_NOGETRUN
---help--- ---help---
Define if the underlying graphics device does not support read operations. Define if the underlying graphics device does not support read operations.
Automatically defined if NX_LCDDRIVER and LCD_NOGETRUN are Automatically defined if NX_LCDDRIVER and LCD_NOGETRUN are

View File

@ -7,8 +7,7 @@ menu "Thread Local Storage (TLS)"
config TLS_ALIGNED config TLS_ALIGNED
bool "Require stack alignment" bool "Require stack alignment"
default y if BUILD_KERNEL default BUILD_KERNEL
default n if !BUILD_KERNEL
---help--- ---help---
Aligned TLS works by fetching thread information from the beginning Aligned TLS works by fetching thread information from the beginning
of the stack memory allocation. In order to do this, the memory of the stack memory allocation. In order to do this, the memory

View File

@ -333,8 +333,7 @@ menu "Font Cache Pixel Depths"
config NXFONTS_DISABLE_1BPP config NXFONTS_DISABLE_1BPP
bool "Disable 1 BPP" bool "Disable 1 BPP"
default y if NX_DISABLE_1BPP default NX_DISABLE_1BPP
default n if !NX_DISABLE_1BPP
---help--- ---help---
NX supports a variety of pixel depths. You can save some memory by disabling 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 support for unused color depths. The selection disables support for 1BPP
@ -342,8 +341,7 @@ config NXFONTS_DISABLE_1BPP
config NXFONTS_DISABLE_2BPP config NXFONTS_DISABLE_2BPP
bool "Disable 2 BPP" bool "Disable 2 BPP"
default y if NX_DISABLE_2BPP default NX_DISABLE_2BPP
default n if !NX_DISABLE_2BPP
---help--- ---help---
NX supports a variety of pixel depths. You can save some memory by disabling 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 support for unused color depths. The selection disables support for 2BPP
@ -351,8 +349,7 @@ config NXFONTS_DISABLE_2BPP
config NXFONTS_DISABLE_4BPP config NXFONTS_DISABLE_4BPP
bool "Disable 4 BPP" bool "Disable 4 BPP"
default y if NX_DISABLE_4BPP default NX_DISABLE_4BPP
default n if !NX_DISABLE_4BPP
---help--- ---help---
NX supports a variety of pixel depths. You can save some memory by disabling 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 support for unused color depths. The selection disables support for 4BPP
@ -360,8 +357,7 @@ config NXFONTS_DISABLE_4BPP
config NXFONTS_DISABLE_8BPP config NXFONTS_DISABLE_8BPP
bool "Disable 8 BPP" bool "Disable 8 BPP"
default y if NX_DISABLE_8BPP default NX_DISABLE_8BPP
default n if !NX_DISABLE_8BPP
---help--- ---help---
NX supports a variety of pixel depths. You can save some memory by disabling 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 support for unused color depths. The selection disables support for 8BPP
@ -369,8 +365,7 @@ config NXFONTS_DISABLE_8BPP
config NXFONTS_DISABLE_16BPP config NXFONTS_DISABLE_16BPP
bool "Disable 16 BPP" bool "Disable 16 BPP"
default y if NX_DISABLE_8BPP default NX_DISABLE_8BPP
default n if !NX_DISABLE_8BPP
---help--- ---help---
NX supports a variety of pixel depths. You can save some memory by disabling 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 support for unused color depths. The selection disables support for 16BPP
@ -378,8 +373,7 @@ config NXFONTS_DISABLE_16BPP
config NXFONTS_DISABLE_24BPP config NXFONTS_DISABLE_24BPP
bool "Disable 24 BPP" bool "Disable 24 BPP"
default y if NX_DISABLE_24BPP default NX_DISABLE_24BPP
default n if !NX_DISABLE_24BPP
---help--- ---help---
NX supports a variety of pixel depths. You can save some memory by disabling 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 support for unused color depths. The selection disables support for 24BPP
@ -387,8 +381,7 @@ config NXFONTS_DISABLE_24BPP
config NXFONTS_DISABLE_32BPP config NXFONTS_DISABLE_32BPP
bool "Disable 32 BPP" bool "Disable 32 BPP"
default y if NX_DISABLE_32BPP default NX_DISABLE_32BPP
default n if !NX_DISABLE_32BPP
---help--- ---help---
NX supports a variety of pixel depths. You can save some memory by disabling 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 support for unused color depths. The selection disables support for 32BPP
@ -396,8 +389,7 @@ config NXFONTS_DISABLE_32BPP
config NXFONTS_PACKEDMSFIRST config NXFONTS_PACKEDMSFIRST
bool "Packed MS First" bool "Packed MS First"
default y if !NX || NX_PACKEDMSFIRST default !NX || NX_PACKEDMSFIRST
default n if NX && !NX_PACKEDMSFIRST
select LCD_PACKEDMSFIRST if LCD select LCD_PACKEDMSFIRST if LCD
---help--- ---help---
If a pixel depth of less than 8-bits is used, then NX needs to know if the If a pixel depth of less than 8-bits is used, then NX needs to know if the

View File

@ -27,8 +27,7 @@ endchoice
config MM_KERNEL_HEAP config MM_KERNEL_HEAP
bool "Kernel dedicated heap" bool "Kernel dedicated heap"
default n if BUILD_FLAT default BUILD_PROTECTED || BUILD_KERNEL
default y if BUILD_PROTECTED || BUILD_KERNEL
---help--- ---help---
Under Flat build, this option will enable a separate heap for the kernel. 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 By separating the kernel and userspace heaps, the user is granted more

View File

@ -30,8 +30,7 @@ config NET_BROADCAST
config NET_UDP_CHECKSUMS config NET_UDP_CHECKSUMS
bool "UDP checksums" bool "UDP checksums"
default y if NET_IPv6 default NET_IPv6
default n if !NET_IPv6
---help--- ---help---
Enable/disable UDP checksum support. UDP checksum support is Enable/disable UDP checksum support. UDP checksum support is
REQUIRED for IPv6. REQUIRED for IPv6.