u-boot/env
Samuel Holland 1011ebc72b sunxi: Select environment MMC based on boot device
Currently, the environment is always stored in eMMC if eMMC is enabled
in the config. This means images written to SD and eMMC will cross-
contaminate their environments unless the configuration is changed.

By dropping the device number from the environment location string and
implementing mmc_get_env_dev, we will always use the environment from
the boot device when booting from SD/eMMC.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2021-08-01 00:11:34 +01:00
..
attr.c
callback.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
common.c env: allow environment to be amended from control dtb 2021-05-04 11:50:50 -04:00
eeprom.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
embedded.c env: Finish migration of common ENV options 2019-11-20 18:32:09 -05:00
env.c env: Fix invalid env handling in env_init() 2021-04-16 13:37:07 -04:00
ext4.c env: add ENV_ERASE_PTR macro 2021-04-16 17:32:34 -04:00
fat.c env/fat.c: support redund environment 2021-04-16 13:37:06 -04:00
flags.c env: Fix warning when forcing environment without ENV_ACCESS_IGNORE_FORCE 2021-04-16 11:55:55 -04:00
flash.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Kconfig sunxi: Select environment MMC based on boot device 2021-08-01 00:11:34 +01:00
Makefile env: remove callback.o for an SPL build 2020-04-24 10:09:59 -04:00
mmc.c env: add ENV_ERASE_PTR macro 2021-04-16 17:32:34 -04:00
nand.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
nowhere.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
nvram.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
onenand.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
remote.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sata.c env: Discern environment coming from external storage 2020-07-31 10:13:00 -04:00
sf.c env: sf: remove the static env_flash variable 2021-04-16 17:33:33 -04:00
ubi.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00