[U-Boot] [PATCH] ubi: env: fix redundand management
Heiko Schocher
hs at denx.de
Wed Oct 16 09:01:17 UTC 2019
Hello Philippe,
Am 14.10.2019 um 19:41 schrieb Philippe Reynes:
> 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 condider
> 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.
>
> Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
> ---
> env/Kconfig | 6 ++++++
> include/env_internal.h | 2 +-
> 2 files changed, 7 insertions(+), 1 deletion(-)
Thanks!
applied to u-boot-ubi.git master
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list