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:
parent
fc210ab505
commit
4638652214
118 changed files with 678 additions and 678 deletions
|
@ -17,15 +17,15 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|||
default 25000000 if HPET_TIMER
|
||||
|
||||
config CLFLUSH_DETECT
|
||||
def_bool y if CACHE_FLUSHING
|
||||
default y if CACHE_FLUSHING
|
||||
|
||||
if UART_NS16550
|
||||
|
||||
config UART_NS16550_PCI
|
||||
def_bool y if PCI
|
||||
default y if PCI
|
||||
|
||||
config UART_NS16550_PORT_0
|
||||
def_bool y
|
||||
default y
|
||||
|
||||
if UART_NS16550_PORT_0
|
||||
|
||||
|
@ -33,12 +33,12 @@ config UART_NS16550_PORT_0_OPTIONS
|
|||
default 0
|
||||
|
||||
config UART_NS16550_PORT_0_PCI
|
||||
def_bool y if PCI
|
||||
default y if PCI
|
||||
|
||||
endif # UART_NS16550_PORT_0
|
||||
|
||||
config UART_NS16550_PORT_1
|
||||
def_bool y
|
||||
default y
|
||||
|
||||
if UART_NS16550_PORT_1
|
||||
|
||||
|
@ -46,7 +46,7 @@ config UART_NS16550_PORT_1_OPTIONS
|
|||
default 0
|
||||
|
||||
config UART_NS16550_PORT_1_PCI
|
||||
def_bool y if PCI
|
||||
default y if PCI
|
||||
|
||||
endif # UART_NS16550_PORT_1
|
||||
|
||||
|
@ -56,7 +56,7 @@ config UART_NS16550_PORT_2_OPTIONS
|
|||
default 0
|
||||
|
||||
config UART_NS16550_PORT_2_PCI
|
||||
def_bool y if PCI
|
||||
default y if PCI
|
||||
|
||||
endif # UART_NS16550_PORT_2
|
||||
|
||||
|
@ -66,7 +66,7 @@ config UART_NS16550_PORT_3_OPTIONS
|
|||
default 0
|
||||
|
||||
config UART_NS16550_PORT_3_PCI
|
||||
def_bool y if PCI
|
||||
default y if PCI
|
||||
|
||||
endif # UART_NS16550_PORT_3
|
||||
|
||||
|
@ -75,7 +75,7 @@ endif # UART_NS16550
|
|||
if GPIO
|
||||
|
||||
config GPIO_INTEL_APL
|
||||
def_bool y
|
||||
default y
|
||||
|
||||
endif # GPIO
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue