summaryrefslogtreecommitdiffstats
path: root/lib
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
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')
-rw-r--r--lib/Kconfig2
-rw-r--r--lib/readline.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index dca93b80d0..4e9213f3e5 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -95,7 +95,7 @@ config STMP_DEVICE
config RATP
select CRC16
- bool
+ bool "RATP protocol support"
help
Reliable Asynchronous Transfer Protocol (RATP) is a protocol for reliably
transferring packets over serial links described in RFC916. This implementation
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();
}