summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-26 11:18:28 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-28 16:43:15 +0200
commitacd643788b6f7d7c26ebdb00a39dba3338ebfcee (patch)
treed2de2da8b9e7e6c3bf002132f7e496bafa9ca73d /common/Kconfig
parent9a7b5d4cdc975f15344c207f9972b2a25b874daf (diff)
downloadbarebox-acd643788b6f7d7c26ebdb00a39dba3338ebfcee.tar.gz
barebox-acd643788b6f7d7c26ebdb00a39dba3338ebfcee.tar.xz
Kconfig: Create Kconfig symbol for NVVAR
nvvar support not only needs globalvar, but also persistent environment storage. Add a separate default-y option which depends on ENV_HANDLING for this case. Make the option visible to let the user decide whether he wants to have this option and add a help text to make this decision easier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index a37141e3c7..fdf2f0da13 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -161,6 +161,21 @@ config GLOBALVAR
variables are used to control several aspects of the system behaviour.
If unsure, say yes here.
+config NVVAR
+ bool "Non volatile global environment variables support"
+ default y if !SHELL_NONE
+ depends on GLOBALVAR
+ depends on ENV_HANDLING
+ help
+ Non volatile environment variables begin with "nv.". They behave like
+ global variables above, but their values are saved in the environment
+ storage with 'saveenv' and thus are persistent over restarts. nv variables
+ are coupled with global variables of the same name. Setting "nv.foo" results
+ in "global.foo" changed also (but not the other way round: setting "global.foo"
+ leaves "nv.foo" untouched). The idea is that nv variables can store defaults
+ while global variables can be changed during runtime without changing the
+ default.
+
menu "memory layout"
source "pbl/Kconfig"