diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-04 09:55:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-04-11 15:57:51 +0200 |
commit | 5b85da326afad83a1477df5ac18410f8998269af (patch) | |
tree | dcfe2973e14ce13f23d17795abae2fe012521c53 /common | |
parent | 3c702a58c7db0c3a1d5355643205b97c430a1017 (diff) | |
download | barebox-5b85da326afad83a1477df5ac18410f8998269af.tar.gz barebox-5b85da326afad83a1477df5ac18410f8998269af.tar.xz |
add noshell support
Some scenarios like initial bootloaders do not need interactive shell
support, so make this optional. Without a shell a board must provide
its own run_shell function.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/Kconfig | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig index 83975eeee9..c3449a9c2d 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -37,6 +37,9 @@ config BLOCK config BLOCK_WRITE bool +config HAVE_NOSHELL + bool + menu "General Settings " config LOCALVERSION_AUTO @@ -234,6 +237,14 @@ choice select COMMAND_SUPPORT help simple shell. No if/then, no return values from commands, no loops + + config SHELL_NONE + depends on HAVE_NOSHELL + bool "no shell (noninteractive build)" + help + No shell at all. This means no shell is started and your board has + to provide a run_shell() function which is started at the end of + the barebox startup process. endchoice config GLOB @@ -402,7 +413,7 @@ config DEFAULT_ENVIRONMENT config DEFAULT_ENVIRONMENT_GENERIC bool depends on DEFAULT_ENVIRONMENT - select SHELL_HUSH + depends on SHELL_HUSH select HUSH_GETOPT select CMD_CRC select CMD_CRC_CMP |