From 3a66ae51c3f34108428e582ef693866d71496d16 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 28 Aug 2020 15:25:37 +0200 Subject: Expose configuration via Kconfig --- src/app/shell/Kconfig | 2 ++ src/app/shell/Makefile.inc | 7 +++++-- src/app/shell/main.cc | 1 - 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 src/app/shell/Kconfig (limited to 'src/app/shell') diff --git a/src/app/shell/Kconfig b/src/app/shell/Kconfig new file mode 100644 index 0000000..a4626d6 --- /dev/null +++ b/src/app/shell/Kconfig @@ -0,0 +1,2 @@ +prompt "Shell / UART Echo" +depends on meta_driver_stdin && wakeup diff --git a/src/app/shell/Makefile.inc b/src/app/shell/Makefile.inc index 66d80ec..3d73351 100644 --- a/src/app/shell/Makefile.inc +++ b/src/app/shell/Makefile.inc @@ -1,2 +1,5 @@ -arch_drivers += ,stdin -wakeup ?= 1 +ifdef app + override loop = 0 + override wakeup = 1 + override arch_drivers += ,stdin +endif diff --git a/src/app/shell/main.cc b/src/app/shell/main.cc index 33896e4..0a7d4ca 100644 --- a/src/app/shell/main.cc +++ b/src/app/shell/main.cc @@ -2,7 +2,6 @@ #include "driver/gpio.h" #include "driver/stdout.h" #include "driver/stdin.h" -#include "driver/uptime.h" /* void check_command(unsigned char argc, char** argv) -- cgit v1.2.3