MLK-22279-2 env: Add a config to enable nowhere as default location
authorYe Li <ye.li@nxp.com>
Tue, 16 Jul 2019 09:06:10 +0000 (02:06 -0700)
committerYe Li <ye.li@nxp.com>
Wed, 17 Jul 2019 07:19:54 +0000 (00:19 -0700)
commit606469c948ef427779f13c076843e8bd3812fc83
treeacb6de1c44b79728d5f6ae54479d29c88b9ec0e6
parent565d9002ac59b03d5bc77c6d88f2b93492166b66
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>
(cherry picked from commit 64c02d26555491eb7cb758f58511620c1590c378)
env/Kconfig
env/Makefile
env/common.c
env/env.c