CONSOLE_GETCHAR and CONSOLE_GETLINE select CONSOLE_HANDLER and
UART_CONSOLE_DEBUG_SERVER_HOOKS, which depend on UART_CONSOLE, but
UART_CONSOLE is n for some boards, giving a select with unsatisfied
dependencies and a warning. Triggers in CI.
Looking at the code, CONSOLE_{GETCHAR,GETLINE} also depend on
UART_CONSOLE there. Add a 'depends on UART_CONSOLE' to the 'choice' that
contains them.
Maybe the samples/subsys/console/{echo,getchar}/ samples shouldn't be
run on some boards that they're currently run on, but there's still the
issue that CONSOLE_{GETCHAR,GETLINE} shouldn't be shown in menuconfig
when they don't apply.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
# Copyright (c) 2017 Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig CONSOLE_SUBSYS
|
|
bool "Console subsystem/support routines [EXPERIMENTAL]"
|
|
help
|
|
Console subsystem and helper functions
|
|
|
|
if CONSOLE_SUBSYS
|
|
|
|
choice
|
|
prompt "Console 'get' function selection"
|
|
optional
|
|
depends on UART_CONSOLE
|
|
|
|
config CONSOLE_GETCHAR
|
|
bool "Character by character input and output"
|
|
select UART_CONSOLE_DEBUG_SERVER_HOOKS
|
|
select CONSOLE_HANDLER
|
|
|
|
config CONSOLE_GETLINE
|
|
bool "Line by line input"
|
|
select CONSOLE_HANDLER
|
|
|
|
endchoice
|
|
|
|
if CONSOLE_GETCHAR
|
|
|
|
config CONSOLE_GETCHAR_BUFSIZE
|
|
int "console_getchar() buffer size"
|
|
default 16
|
|
help
|
|
Buffer size for console_getchar(). The default is optimized
|
|
to save RAM. You may need to increase it e.g. to support
|
|
large host-side clipboard pastes. Set to 0 to disable
|
|
interrupt-driven operation and use busy-polling.
|
|
|
|
config CONSOLE_PUTCHAR_BUFSIZE
|
|
int "console_putchar() buffer size"
|
|
default 16
|
|
help
|
|
Buffer size for console_putchar(). The default is optimized
|
|
to save RAM. You may need to increase it e.g. to support
|
|
large host-side clipboard pastes. Set to 0 to disable
|
|
interrupt-driven operation and use busy-polling.
|
|
|
|
endif # CONSOLE_GETCHAR
|
|
|
|
endif # CONSOLE_SUBSYS
|