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
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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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.

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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"

View File

@ -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.

View File

@ -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"

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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.