mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
ef9bef2bfe
commit
890feecaab
15 changed files with 29 additions and 24 deletions
4
env/nand.c
vendored
4
env/nand.c
vendored
|
@ -331,7 +331,7 @@ static int env_nand_load(void)
|
|||
read2_fail = readenv(CONFIG_ENV_OFFSET_REDUND, (u_char *) tmp_env2);
|
||||
|
||||
ret = env_import_redund((char *)tmp_env1, read1_fail, (char *)tmp_env2,
|
||||
read2_fail);
|
||||
read2_fail, H_EXTERNAL);
|
||||
|
||||
done:
|
||||
free(tmp_env1);
|
||||
|
@ -372,7 +372,7 @@ static int env_nand_load(void)
|
|||
return -EIO;
|
||||
}
|
||||
|
||||
return env_import(buf, 1);
|
||||
return env_import(buf, 1, H_EXTERNAL);
|
||||
#endif /* ! ENV_IS_EMBEDDED */
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue