Kconfig: Use 'default' instead of 'def_bool' in Kconfig.defconfig files

This can help find unused symbols. Those end up without a type if
'default' is used instead of 'def_bool', which generates a warning.

Search for "Kconfig.defconfig" in
https://docs.zephyrproject.org/latest/application/kconfig-tips.html for
a longer explanation.

Keep the 'def_bool' for the following symbols, which seem to be
deliberately defined only in Kconfig.defconfig files:

 - ALTERA_AVALON_I2C
 - ALTERA_AVALON_MSGDMA
 - ALTERA_AVALON_PIO
 - ALTERA_AVALON_QSPI
 - ALTERA_AVALON_SYSID
 - CLOCK_CONTROL_IMX_CCM
 - CPU_EM4_DMIPS
 - CPU_EM4_FPUDA
 - CPU_EM4_FPUS
 - FP_FPU_DA
 - I2C_GECKO

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson
2018-11-13 17:15:49 +01:00
committed by Anas Nashif
parent fc210ab505
commit 4638652214
118 changed files with 678 additions and 678 deletions

View File

@@ -7,7 +7,7 @@ config BOARD
if FLASH && SPI
config SPI_FLASH_W25QXXDV
def_bool y
default y
config SPI_FLASH_W25QXXDV_SPI_NAME
default "SPI_2"

View File

@@ -5,26 +5,26 @@ config BOARD
default "em_starterkit"
config CPU_ARCEM4
def_bool y
default y
if GPIO
config GPIO_DW
def_bool y
default y
if GPIO_DW
config GPIO_DW_0
def_bool y
default y
config GPIO_DW_1
def_bool y
default y
config GPIO_DW_2
def_bool y
default y
config GPIO_DW_3
def_bool y
default y
endif # GPIO_DW
@@ -33,7 +33,7 @@ endif # GPIO
if I2C
config I2C_DW
def_bool y
default y
if I2C_DW
@@ -41,10 +41,10 @@ config I2C_DW_CLOCK_SPEED
default 100
config I2C_0
def_bool y
default y
config I2C_1
def_bool y
default y
endif # I2C_DW
@@ -53,21 +53,21 @@ endif # I2C
if SERIAL
config UART_NS16550
def_bool y
default y
endif # SERIAL
if UART_CONSOLE
config UART_NS16550_PORT_1
def_bool y
default y
endif # UART_CONSOLE
if SPI
config SPI_DW
def_bool y
default y
if SPI_DW
@@ -75,13 +75,13 @@ config SPI_DW_FIFO_DEPTH
default 32
config SPI_DW_ARC_AUX_REGS
def_bool n
default n
config SPI_0
def_bool y
default y
config SPI_1
def_bool y
default y
endif # SPI_DW

View File

@@ -5,12 +5,12 @@ config BOARD
default "nsim_em"
config CPU_ARCEM4
def_bool y
default y
if SERIAL
config UART_NSIM
def_bool y
default y
config UART_NSIM_PORT_0_BASE_ADDR
default 0xf0000000

View File

@@ -13,47 +13,47 @@ config BOARD
if UART_CONSOLE
config UART_STM32_PORT_1
def_bool y
default y
endif # UART_CONSOLE
if I2C
config I2C_1
def_bool y
default y
config I2C_2
def_bool y
default y
config I2C_3
def_bool y
default y
config I2C_STM32_INTERRUPT
def_bool y
default y
endif # I2C
if SPI
config SPI_1
def_bool y
default y
config SPI_2
def_bool y
default y
config SPI_STM32_INTERRUPT
def_bool y
default y
endif # SPI
if I2S
config I2S_STM32
def_bool y
default y
# configure PLLI2S to generate a I2SxCLK=128MHz
config I2S_STM32_USE_PLLI2S_ENABLE
def_bool y
default y
config I2S_STM32_PLLI2S_PLLM
default 8
@@ -65,14 +65,14 @@ config I2S_STM32_PLLI2S_PLLR
default 3
config I2S_5
def_bool y
default y
endif # I2S
if DMA
config DMA_STM32F4X
def_bool y
default y
endif # DMA
@@ -87,7 +87,7 @@ choice LSM6DSL_TRIGGER_MODE
endchoice
config LSM6DSL_SENSORHUB
def_bool y
default y
choice LSM6DSL_EXTERNAL_SENSOR_0
default LSM6DSL_EXT0_LIS2MDL

View File

@@ -14,47 +14,47 @@ if UART_CONSOLE
config UART_STM32_PORT_1
default y
def_bool y
default y
endif # UART_CONSOLE
if SERIAL
config UART_STM32_PORT_2
def_bool y
default y
config UART_STM32_PORT_6
def_bool y
default y
endif # SERIAL
if I2C
config I2C_1
def_bool y
default y
config I2C_2
def_bool y
default y
endif # I2C
if SPI
config SPI_1
def_bool y
default y
config SPI_2
def_bool y
default y
config SPI_STM32_INTERRUPT
def_bool y
default y
endif # SPI
if BT
config SPI
def_bool y
default y
choice BT_HCI_BUS_TYPE
default BT_SPI
@@ -69,11 +69,11 @@ if NETWORKING
config NET_L2_BT
depends on NET_IPV6
def_bool y
default y
config NET_L2_BT_ZEP1656
depends on NET_IPV6
def_bool y
default y
endif # NETWORKING

View File

@@ -13,33 +13,33 @@ config BOARD
if UART_CONSOLE
config UART_STM32_PORT_1
def_bool y
default y
endif # UART_CONSOLE
if I2C
config I2C_1
def_bool y
default y
config I2C_2
def_bool y
default y
config I2C_3
def_bool y
default y
config I2C_STM32_INTERRUPT
def_bool y
default y
endif # I2C
if SPI
config SPI_1
def_bool y
default y
config SPI_STM32_INTERRUPT
def_bool y
default y
endif # SPI

View File

@@ -12,12 +12,12 @@ config BOARD
if I2C
config I2C_NRFX
def_bool y
default y
if I2C_NRFX
config I2C_0
def_bool y
default y
endif # I2C_NRFX
@@ -26,12 +26,12 @@ endif # I2C
if SPI
config SPI_NRFX
def_bool y
default y
if SPI_NRFX
config SPI_0
def_bool y
default y
endif # SPI_NRFX

View File

@@ -12,7 +12,7 @@ config BOARD
if GPIO
config GPIO_ATMEL_SAM3
def_bool y
default y
config GPIO_ATMEL_SAM3_PORTA
default y
@@ -31,7 +31,7 @@ endif # GPIO
if I2C
config I2C_SAM_TWI
def_bool y
default y
config I2C_0
default y

View File

@@ -24,16 +24,16 @@ endif # UART_CONSOLE
if I2C
config I2C_1
def_bool y
default y
endif # I2C
if SPI
config SPI_1
def_bool y
default y
config SPI_2
def_bool y
default y
endif # SPI
endif # BOARD_B_L072Z_LRWAN1

View File

@@ -12,12 +12,12 @@ config BOARD
if I2C
config I2C_NRFX
def_bool y
default y
if I2C_NRFX
config I2C_0
def_bool y
default y
endif #I2C_NRFX

View File

@@ -9,7 +9,7 @@ config BOARD
if I2C
config I2C_CC32XX
def_bool y
default y
endif # I2C

View File

@@ -13,55 +13,55 @@ config BOARD
if GPIO_IMX
config GPIO_IMX_PORT_1
def_bool y
default y
config GPIO_IMX_PORT_2
def_bool y
default y
config GPIO_IMX_PORT_3
def_bool n
default n
config GPIO_IMX_PORT_4
def_bool n
default n
config GPIO_IMX_PORT_5
def_bool n
default n
config GPIO_IMX_PORT_6
def_bool n
default n
config GPIO_IMX_PORT_7
def_bool n
default n
endif # GPIO_IMX
if UART_IMX
config UART_IMX_UART_2
def_bool y
default y
endif # UART_IMX
if I2C_IMX
config I2C_1
def_bool n
default n
config I2C_2
def_bool n
default n
config I2C_3
def_bool n
default n
config I2C_4
def_bool y
default y
endif # I2C_IMX
if PWM_IMX
config PWM_1
def_bool y
default y
endif # PWM_IMX

View File

@@ -16,7 +16,7 @@ endif # GPIO
if UART_PSOC6
config UART_PSOC6_UART_6
def_bool y
default y
endif # UART_PSOC6

View File

@@ -16,7 +16,7 @@ endif # GPIO
if UART_PSOC6
config UART_PSOC6_UART_5
def_bool y
default y
endif # UART_PSOC6

View File

@@ -19,29 +19,29 @@ config CMU_LFXO_FREQ
if GPIO_GECKO
config GPIO_GECKO_PORTA
def_bool y
default y
config GPIO_GECKO_PORTB
def_bool n
default n
config GPIO_GECKO_PORTC
def_bool y
default y
config GPIO_GECKO_PORTD
def_bool n
default n
config GPIO_GECKO_PORTE
def_bool n
default n
config GPIO_GECKO_PORTF
def_bool y
default y
endif # GPIO_GECKO
if UART_GECKO
config USART_GECKO_1
def_bool y
default y
endif # UART_GECKO

View File

@@ -19,29 +19,29 @@ config CMU_LFXO_FREQ
if GPIO_GECKO
config GPIO_GECKO_PORTA
def_bool y
default y
config GPIO_GECKO_PORTB
def_bool y
default y
config GPIO_GECKO_PORTC
def_bool n
default n
config GPIO_GECKO_PORTD
def_bool n
default n
config GPIO_GECKO_PORTE
def_bool y
default y
config GPIO_GECKO_PORTF
def_bool y
default y
endif # GPIO_GECKO
if UART_GECKO
config UART_GECKO_0
def_bool y
default y
endif # UART_GECKO

View File

@@ -19,29 +19,29 @@ config CMU_LFXO_FREQ
if GPIO_GECKO
config GPIO_GECKO_PORTA
def_bool y
default y
config GPIO_GECKO_PORTB
def_bool y
default y
config GPIO_GECKO_PORTC
def_bool y
default y
config GPIO_GECKO_PORTD
def_bool y
default y
config GPIO_GECKO_PORTE
def_bool n
default n
config GPIO_GECKO_PORTF
def_bool y
default y
endif # GPIO_GECKO
if UART_GECKO
config USART_GECKO_0
def_bool y
default y
endif # UART_GECKO

View File

@@ -19,37 +19,37 @@ config CMU_LFXO_FREQ
if GPIO_GECKO
config GPIO_GECKO_PORTA
def_bool y
default y
config GPIO_GECKO_PORTD
def_bool y
default y
config GPIO_GECKO_PORTF
def_bool y
default y
endif # GPIO_GECKO
if UART_GECKO
config USART_GECKO_0
def_bool y
default y
endif # UART_GECKO
if LEUART_GECKO
config LEUART_GECKO_0
def_bool y
default y
endif # LEUART_GECKO
if I2C_GECKO
config I2C_0
def_bool y
default y
config I2C_1
def_bool y
default y
endif # I2C_GECKO

View File

@@ -25,95 +25,95 @@ config MCG_FCRDIV
if UART_MCUX
config UART_MCUX_0
def_bool y if UART_CONSOLE
default y if UART_CONSOLE
config UART_MCUX_3
def_bool y if BT_UART
default y if BT_UART
endif # UART_MCUX
if PINMUX_MCUX
config PINMUX_MCUX_PORTA
def_bool y
default y
config PINMUX_MCUX_PORTB
def_bool y
default y
config PINMUX_MCUX_PORTC
def_bool y
default y
config PINMUX_MCUX_PORTD
def_bool y if SPI_0 || UART_MCUX_2
default y if SPI_0 || UART_MCUX_2
config PINMUX_MCUX_PORTE
def_bool y
default y
endif # PINMUX_MCUX
if GPIO_MCUX
config GPIO_MCUX_PORTA
def_bool y
default y
config GPIO_MCUX_PORTB
def_bool y
default y
config GPIO_MCUX_PORTC
def_bool y
default y
config GPIO_MCUX_PORTD
def_bool y
default y
config GPIO_MCUX_PORTE
def_bool y
default y
endif # GPIO_MCUX
if I2C
config I2C_0
def_bool y
default y
config I2C_1
def_bool n
default n
endif # I2C
if ADC
config ADC_1
def_bool y
default y
endif # ADC
if PWM_MCUX_FTM
config PWM_3
def_bool y
default y
endif # PWM_MCUX_FTM
if SPI
config SPI_0
def_bool y
default y
config SPI_1
def_bool n
default n
config SPI_2
def_bool n
default n
endif # SPI
if NETWORKING
config NET_L2_ETHERNET
def_bool y if !MODEM_WNCM14A2A
default y if !MODEM_WNCM14A2A
config ETH_MCUX_0
def_bool y if NET_L2_ETHERNET
default y if NET_L2_ETHERNET
endif # NETWORKING

View File

@@ -28,59 +28,59 @@ config MCG_FCRDIV
if PINMUX_MCUX
config PINMUX_MCUX_PORTA
def_bool y
default y
config PINMUX_MCUX_PORTB
def_bool y
default y
config PINMUX_MCUX_PORTC
def_bool n
default n
config PINMUX_MCUX_PORTD
def_bool y
default y
config PINMUX_MCUX_PORTE
def_bool y if I2C_0
default y if I2C_0
endif # PINMUX_MCUX
if GPIO_MCUX
config GPIO_MCUX_PORTA
def_bool y
default y
config GPIO_MCUX_PORTB
def_bool y
default y
config GPIO_MCUX_PORTC
def_bool n
default n
config GPIO_MCUX_PORTD
def_bool y
default y
config GPIO_MCUX_PORTE
def_bool n
default n
endif # GPIO_MCUX
if UART_MCUX_LPSCI
config UART_MCUX_LPSCI_0
def_bool y if UART_CONSOLE
default y if UART_CONSOLE
endif # UART_MCUX_LPSCI
if I2C
config I2C_0
def_bool y
default y
endif # I2C
if ADC
config ADC_0
def_bool y
default y
endif # ADC

Some files were not shown because too many files have changed in this diff Show More