Kbuild: Kconfig source standard for drivers.

This commit standardize the Kconfig inclusion.
Selective sourcing of Kconfig files create conflict when merging
different configuration files (.config files).
Instead, now each kconfig symbols is dependant of its specific
DRV_* driver ksymbol.

Change-Id: I3d20d108a83f00d34067dc334758fd57e51feecf
Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
This commit is contained in:
Juan Manuel Cruz 2015-05-20 15:05:19 -05:00 committed by Anas Nashif
commit c4535eeddf
4 changed files with 7 additions and 7 deletions

View file

@ -38,9 +38,7 @@ config DRV_CONSOLE
help
This option enables the UART console driver.
if DRV_CONSOLE
source "drivers/console/Kconfig"
endif
config DRV_SERIAL
bool
@ -48,9 +46,7 @@ config DRV_SERIAL
help
This option enables the serial driver.
if DRV_SERIAL
source "drivers/serial/Kconfig"
endif
config DRV_TIMER
bool
@ -58,9 +54,7 @@ config DRV_TIMER
help
This option enables the timer driver.
if DRV_TIMER
source "drivers/timer/Kconfig"
endif
config DRV_INTCTL
bool

View file

@ -33,6 +33,7 @@
config UART_INTERRUPT_DRIVEN
bool
prompt "Interrupt driven UART support"
depends on DRV_CONSOLE
default n
help
This option enables interrupt support for UART allowing console
@ -41,6 +42,7 @@ config UART_INTERRUPT_DRIVEN
config CONSOLE_HANDLER
bool
prompt "Enable console input handler"
depends on DRV_CONSOLE
select UART_INTERRUPT_DRIVEN
default n
help

View file

@ -33,6 +33,7 @@
config DRV_NS16550
bool
depends on DRV_SERIAL
default n
help
This option enables the NS16550 serial driver.
@ -42,6 +43,7 @@ config DRV_NS16550
config DRV_K20_UART
bool
default n
depends on DRV_SERIAL
help
This option enables the K20 serial driver.
This specific driver can be used for the serial hardware
@ -50,6 +52,7 @@ config DRV_K20_UART
config DRV_STELLARIS_UART
bool
default n
depends on DRV_SERIAL
help
This option enables the Stellaris serial driver.
This specific driver can be used for the serial hardware
@ -58,6 +61,7 @@ config DRV_STELLARIS_UART
config UART_INTERRUPT_DRIVEN
bool
prompt "Interrupt driven UART support"
depends on DRV_SERIAL
default n
help
This option enables interrupt support for UART allowing console

View file

@ -33,6 +33,6 @@
config PIT
bool "PIT (i8253)"
default n
depends on ARCH="x86"
depends on ARCH="x86" && DRV_TIMER
help
This option selects legacy i8253 timer as system timer.