diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-29 20:21:16 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-14 08:57:01 +0200 |
commit | b8c94a15611ce7e191d022a3cd9f3ba23930a9c8 (patch) | |
tree | f0daa10332462b729219562cfca592c0f9268770 /commands/Kconfig | |
parent | 9b42dfff0f2cecb6a9c7581c4c0c59ed9c9c586d (diff) | |
download | barebox-b8c94a15611ce7e191d022a3cd9f3ba23930a9c8.tar.gz barebox-b8c94a15611ce7e191d022a3cd9f3ba23930a9c8.tar.xz |
add 'global' command
This implements global shell variable support. This is done by registering
a new device named 'global', so global variables are just plain device
parameters.
Global variables are useful for storing the global state in the environment.
Currently we do this by sourcing scripts instead of executing them which is
quite limiting.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r-- | commands/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig index 49a56ca2ff..1c152948c1 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -113,6 +113,13 @@ config CMD_LINUX_EXEC help This command executes a command on the Linux host. +config CMD_GLOBAL + select GLOBALVAR + tristate + prompt "global" + help + The global command allows to create global variables + endmenu menu "file commands " |