kconfig: Hide the Stellaris serial driver on unsupported platforms

Hide the Stellaris serial driver on unsupported platforms.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2018-12-27 19:49:39 +01:00 committed by Anas Nashif
commit acb6486489

View file

@ -1,5 +1,6 @@
menuconfig UART_STELLARIS
bool "Stellaris serial driver"
depends on SOC_TI_LM3S6965 || SOC_CC2650
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help
@ -7,11 +8,12 @@ menuconfig UART_STELLARIS
This specific driver can be used for the serial hardware
available at the Texas Instrument LM3S6965 board.
if UART_STELLARIS
# ---------- Port 0 ----------
menuconfig UART_STELLARIS_PORT_0
bool "Enable Stellaris UART Port 0"
depends on UART_STELLARIS
help
This tells the driver to configure the UART port at boot, depending on
the additional configure options below.
@ -20,7 +22,6 @@ menuconfig UART_STELLARIS_PORT_0
menuconfig UART_STELLARIS_PORT_1
bool "Enable Stellaris UART Port 1"
depends on UART_STELLARIS
help
This tells the driver to configure the UART port at boot, depending on
the additional configure options below.
@ -29,7 +30,8 @@ menuconfig UART_STELLARIS_PORT_1
menuconfig UART_STELLARIS_PORT_2
bool "Enable Stellaris UART Port 2"
depends on UART_STELLARIS
help
This tells the driver to configure the UART port at boot, depending on
the additional configure options below.
endif # UART_STELLARIS