Browse Source

shell: move shell Kconfig to drivers/console/shells

Cleanup some unneeded ifdefs in C files.

Change-Id: Icd1f34f2d24b531ad5320e3436cce048d236a4f0
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
pull/254/head
Anas Nashif 9 years ago committed by Anas Nashif
parent
commit
559b46f37d
  1. 3
      drivers/console/Kconfig
  2. 9
      drivers/console/shells/Kconfig
  3. 5
      drivers/console/shells/shell_service.c
  4. 8
      misc/Kconfig

3
drivers/console/Kconfig

@ -158,4 +158,7 @@ config UART_PIPE_ON_DEV_NAME
This option specifies the name of UART device to be used This option specifies the name of UART device to be used
for pipe UART. for pipe UART.
source "drivers/console/shells/Kconfig"
endif endif

9
drivers/console/shells/Kconfig

@ -0,0 +1,9 @@
config ENABLE_SHELL
bool
prompt "Shell support"
default n
help
Enabling shell services. If it is enabled, kernel shell commands are
also available for use.

5
drivers/console/shells/shell_service.c

@ -22,9 +22,6 @@
* Includes also adding basic framework commands to shell commands. * Includes also adding basic framework commands to shell commands.
*/ */
#ifndef _SHELLSERVICE_H
#define _SHELLSERVICE_H
#include <misc/printk.h> #include <misc/printk.h>
#include <misc/shell.h> #include <misc/shell.h>
#include <init.h> #include <init.h>
@ -61,5 +58,3 @@ int shell_run(struct device *dev)
SYS_INIT(shell_run, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); SYS_INIT(shell_run, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* SHELLSERVICE_H */

8
misc/Kconfig

@ -242,14 +242,6 @@ config OMIT_FRAME_POINTER
trace. Recommended only for production builds which do not need to be trace. Recommended only for production builds which do not need to be
debugged. debugged.
config ENABLE_SHELL
bool
prompt "Shell support"
default n
help
Enabling shell services. If it is enabled, kernel shell commands are
also available for use.
source "misc/debug/Kconfig" source "misc/debug/Kconfig"
endmenu endmenu

Loading…
Cancel
Save