diff options
author | Marek Vasut <marex@denx.de> | 2020-07-07 20:51:35 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-31 10:13:00 -0400 |
commit | 890feecaab72a630eac3344443e053173f4ad02f (patch) | |
tree | c36661a5b3a0d8e65f813cc1f5fcf06d3f100d2c /env/ubi.c | |
parent | ef9bef2bfed36424a3a6678d76d9eb7b710de1ac (diff) | |
download | u-boot-890feecaab72a630eac3344443e053173f4ad02f.tar.gz |
env: Discern environment coming from external storage
Add another custom environment flag which discerns environment coming
from external storage from environment set by U-Boot itself.
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'env/ubi.c')
-rw-r--r-- | env/ubi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -141,7 +141,7 @@ static int env_ubi_load(void) CONFIG_ENV_UBI_PART, CONFIG_ENV_UBI_VOLUME_REDUND); return env_import_redund((char *)tmp_env1, read1_fail, (char *)tmp_env2, - read2_fail); + read2_fail, H_EXTERNAL); } #else /* ! CONFIG_SYS_REDUNDAND_ENVIRONMENT */ static int env_ubi_load(void) @@ -172,7 +172,7 @@ static int env_ubi_load(void) return -EIO; } - return env_import(buf, 1); + return env_import(buf, 1, H_EXTERNAL); } #endif /* CONFIG_SYS_REDUNDAND_ENVIRONMENT */ |