u-boot/env
Philippe Reynes 6116234174 ubi: env: fix redundand management
We check (with a #if defined()) the config ENV_UBI_VOLUME_REDUND
to know if there is a redundant env. But this config is a string
and is always defined with env is in ubi, so we always consider
that a redundand env is used.

To fix this issue, I've added a hidden flag ENV_UBI_IS_VOLUME_REDUND
that is true when ENV_UBI_VOLUME_REDUND is not "". Then, I check
this flag in the code, instead of the string ENV_UBI_VOLUME_REDUND.

hs: fixed typo s/condider/consider

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
2019-10-16 05:53:37 +02:00
..
attr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
callback.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
common.c Revert "env: solve compilation error in SPL" 2019-10-04 12:21:33 -04:00
eeprom.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
embedded.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
env.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
ext4.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
fat.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
flags.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
flash.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
Kconfig ubi: env: fix redundand management 2019-10-16 05:53:37 +02:00
Makefile env: Simplify Makefile using $(SPL_TPL_) 2018-07-21 12:24:31 -04:00
mmc.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
nand.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
nowhere.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
nvram.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
onenand.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
remote.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
sata.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
sf.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
ubi.c env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00