diff options
author | Ye Li <ye.li@nxp.com> | 2019-07-16 02:06:10 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2019-07-17 00:14:12 -0700 |
commit | 64c02d26555491eb7cb758f58511620c1590c378 (patch) | |
tree | 6b2ef4a3cca08b991de40c9d94e9d9c005cdfce7 /env/Kconfig | |
parent | 5b12d7cabb14bab9a95af7460b36c6c85db1b328 (diff) |
MLK-22279-2 env: Add a config to enable nowhere as default location
When booting from USB there is no place to store the environment and
should use default env. However CONFIG_ENV_IS_NOWHERE has dependence
with other env storage config. If we enable multiple storages, NOWHERE
can't be enabled. And saveenv won't be built if NOWHERE is set.
This patch introduces a new CONFIG_ENV_DEFAULT_NOWHERE, that can enable
NOWHERE as a default env location when other storage are not avaliable.
And allow to build saveenv.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'env/Kconfig')
-rw-r--r-- | env/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig index 73332ceeb0..ac2ef067b3 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -21,6 +21,13 @@ config ENV_IS_NOWHERE stored. U-Boot will therefore always start up with a default environment. +config ENV_DEFAULT_NOWHERE + depends on !ENV_IS_NOWHERE + bool "Environment is not stored if no matched location" + help + Define this when multiple ENV locations are defined and use nowhere as + default when no storage medium is matched. + config ENV_IS_IN_EEPROM bool "Environment in EEPROM" depends on !CHAIN_OF_TRUST |