diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2020-02-19 09:47:39 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-24 10:10:00 -0400 |
commit | 1d0adee45cc2d3257c926d6022bf1922805b928e (patch) | |
tree | 52f63a026ab5468d76b792291727913509040911 | |
parent | df928f8549ab4470b45bdf3ca2a1b45c9ffd4317 (diff) |
env: add SAVEENV as an alias of the CMD_SAVEENV symbol
Currently, testing whether to compile in support for saving the
environment is a bit awkward when one needs to take SPL_SAVEENV into
account, and quite a few storage drivers currently do not honour
SPL_SAVEENV.
To make it a bit easier to decide whether environment saving should be
enabled, introduce SAVEENV as an alias for the CMD_SAVEENV
symbol. Then one can simply use
CONFIG_IS_ENABLED(SAVEENV)
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
-rw-r--r-- | env/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig index 8ab7be11c5..af63ac52f7 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -3,6 +3,9 @@ menu "Environment" config ENV_SUPPORT def_bool y +config SAVEENV + def_bool y if CMD_SAVEENV + config ENV_IS_NOWHERE bool "Environment is not stored" default y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \ |