From b8c94a15611ce7e191d022a3cd9f3ba23930a9c8 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 29 Apr 2012 20:21:16 +0200 Subject: 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 --- common/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/Kconfig') diff --git a/common/Kconfig b/common/Kconfig index 73d620a576..81e3acb54a 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -47,6 +47,9 @@ config BINFMT bool select FILETYPE +config GLOBALVAR + bool + menu "General Settings " config LOCALVERSION @@ -493,6 +496,7 @@ config DEFAULT_ENVIRONMENT_GENERIC select HUSH_GETOPT select CMD_CRC select CMD_CRC_CMP + select CMD_AUTOMOUNT if HAVE_DEFAULT_ENVIRONMENT_NEW prompt "Default environment generic" help With this option barebox will use the generic default @@ -502,6 +506,9 @@ config DEFAULT_ENVIRONMENT_GENERIC at least contain a /env/config file. This will be able to overwrite the files from defaultenv. +config HAVE_DEFAULT_ENVIRONMENT_NEW + bool + config DEFAULT_ENVIRONMENT_PATH string depends on DEFAULT_ENVIRONMENT -- cgit v1.2.3