diff options
author | David Woodhouse <dwmw2@infradead.org> | 2020-06-19 23:07:17 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-26 14:35:12 -0400 |
commit | 6731bef6966ea2b26cdcfe0109ff5a950003fd03 (patch) | |
tree | 78ec6ade3088dbc33e90c5728b4e757e6d0f8d3d /env/Kconfig | |
parent | ada61f1ee2a4eaa1b29d699b5ba940483171df8a (diff) | |
download | u-boot-6731bef6966ea2b26cdcfe0109ff5a950003fd03.tar.gz u-boot-6731bef6966ea2b26cdcfe0109ff5a950003fd03.tar.xz u-boot-6731bef6966ea2b26cdcfe0109ff5a950003fd03.zip |
env/fat.c: allow loading from a FAT partition on the MMC boot device
I don't want to have to specify the device; only the partition.
This allows me to use the same image on internal eMMC or SD card for
Banana Pi R2, and it finds its own environment either way.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
[trini: Add #if/#else/#endif logic around CONFIG_SYS_MMC_ENV_DEV usage,
whitespace changes]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'env/Kconfig')
-rw-r--r-- | env/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig index 38e7fadbb9..5784136674 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -434,6 +434,10 @@ config ENV_FAT_DEVICE_AND_PART If none, first valid partition in device D. If no partition table then means device D. + If ENV_FAT_INTERFACE is set to "mmc" then device 'D' can be omitted, + leaving the string starting with a colon, and the boot device will + be used. + config ENV_FAT_FILE string "Name of the FAT file to use for the environment" depends on ENV_IS_IN_FAT |