summaryrefslogtreecommitdiffstats
path: root/lib/readline.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-02-24 16:01:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-01 09:39:42 +0100
commit4cf99a772cf2494db74ff6872fae5bd2d2a03afa (patch)
tree3da4b269d0b9aa48f7fcd64e164b002887acfb46 /lib/readline.c
parentd876f2ec0890688a0235c052f6f5b500e92d35a2 (diff)
downloadbarebox-4cf99a772cf2494db74ff6872fae5bd2d2a03afa.tar.gz
barebox-4cf99a772cf2494db74ff6872fae5bd2d2a03afa.tar.xz
ratp: allow building without full console support
Make CONFIG_RATP a selectable config option, so that the user can enable RATP support without explicitly needing to enable the full console support over RATP (e.g. only for RATP FS or built-in command support). The full console can still be explicitly enabled with CONFIG_CONSOLE_RATP. Signed-off-by: Aleksander Morgado <aleksander@aleksander.es> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/readline.c')
-rw-r--r--lib/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readline.c b/lib/readline.c
index 1e380abeca..904a776394 100644
--- a/lib/readline.c
+++ b/lib/readline.c
@@ -202,7 +202,7 @@ int readline(const char *prompt, char *buf, int len)
while (1) {
while (!tstc()) {
poller_call();
- if (IS_ENABLED(CONFIG_RATP))
+ if (IS_ENABLED(CONFIG_CONSOLE_RATP))
barebox_ratp_command_run();
}