mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02: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:
4
env/mmc.c
vendored
4
env/mmc.c
vendored
@@ -338,7 +338,7 @@ static int env_mmc_load(void)
|
||||
read2_fail = read_env(mmc, CONFIG_ENV_SIZE, offset2, tmp_env2);
|
||||
|
||||
ret = env_import_redund((char *)tmp_env1, read1_fail, (char *)tmp_env2,
|
||||
read2_fail);
|
||||
read2_fail, H_EXTERNAL);
|
||||
|
||||
fini:
|
||||
fini_mmc_for_env(mmc);
|
||||
@@ -380,7 +380,7 @@ static int env_mmc_load(void)
|
||||
goto fini;
|
||||
}
|
||||
|
||||
ret = env_import(buf, 1);
|
||||
ret = env_import(buf, 1, H_EXTERNAL);
|
||||
if (!ret) {
|
||||
ep = (env_t *)buf;
|
||||
gd->env_addr = (ulong)&ep->data;
|
||||
|
Reference in New Issue
Block a user