diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-12-14 16:51:31 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-11 15:02:24 -0500 |
commit | 91fc785834194c7cf2f686a8861a67154e56e817 (patch) | |
tree | ff8d11612ac3e09e37c27f8eaeeafe51287f7b63 /net/fastboot.c | |
parent | e64289e1ec7c66a2d858aff65c0af501557d538b (diff) |
env: ubi: add support of command env erase
Add support of opts erase for ubi env backend, this opts is used by
command 'env erase'.
This command only zero-fill the env UBI volume CONFIG_ENV_UBI_VOLUME
and CONFIG_ENV_UBI_VOLUME_REDUND, so the saved environment becomes
invalid.
This patch introduces a local define ENV_UBI_VOLUME_REDUND
only to avoid #if in the code, as CONFIG_ENV_UBI_VOLUME_REDUND
is only defined when CONFIG_SYS_REDUNDAND_ENVIRONMENT is defined.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'net/fastboot.c')
0 files changed, 0 insertions, 0 deletions