drivers/serial/Kconfig: Make feature dependent on CONFIG_BUILD_FLAT.

This commit is contained in:
Gregory Nutt 2018-08-26 08:56:16 -06:00
parent 11f8dc735c
commit 55b7938f0a
2 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,7 @@ config SERIAL_SIGKILL_CHAR
int "Serial parse SIGKILL characters"
default 3 if SERIAL_CONSOLE
default 4 if !SERIAL_CONSOLE
depends on SIG_SIGKILL
depends on SIG_SIGKILL && BUILD_FLAT
---help---
Use ASCII 3 (Ctrl-c) or 4 (ctrl-d) inputs to determine whether to
send a SIGKILL event. Other charcters may also be selected.

View File

@ -1371,6 +1371,8 @@ static int uart_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
#endif
#ifdef CONFIG_SERIAL_SIGKILL_CHAR
/* Make the given terminal the controlling terminal of the calling process */
case TIOCSCTTY:
{
/* REVISIT: This only applies to console devices (TTYs). In