summaryrefslogtreecommitdiff
path: root/env/Kconfig
diff options
context:
space:
mode:
authorEmmanuel Di Fede <emmanuel.difede@cysec.com>2023-06-14 13:05:28 +0300
committerTom Rini <trini@konsulko.com>2023-07-14 22:21:07 +0300
commit9e70676cf5281f0e37736ea42b59ef2e02907051 (patch)
tree2cf15417f1656c0bd2d48c42074b914ec5d6f4d4 /env/Kconfig
parentb1d774bb8749151293a700173c79b9501ac72a2c (diff)
downloadu-boot-9e70676cf5281f0e37736ea42b59ef2e02907051.tar.xz
env: mmc: statically set the environment partition name
The new opt-out setting, CONFIG_ENV_MMC_PARTITION, statically sets the MMC environment partition name. Prior to this patch, the only way to declare this partition name was by creating a 'u-boot,mmc-env-partition' parameter in the device-tree's /config node. This setting provides additional flexibility, particularly in cases where accessing the device-tree is not straightforward (e.g. QEMU). If undeclared, the device-tree's setting will be used. Signed-off-by: Emmanuel Di Fede <emmanuel.difede@cysec.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'env/Kconfig')
-rw-r--r--env/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig
index 7342397e16..13e32104b4 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -662,6 +662,18 @@ config SYS_MMC_ENV_PART
partition 0 or the first boot partition, which is 1 or some other defined
partition.
+config USE_ENV_MMC_PARTITION
+ bool "use the mmc environment partition name"
+ depends on ENV_IS_IN_MMC
+
+config ENV_MMC_PARTITION
+ string "mmc environment partition name"
+ depends on USE_ENV_MMC_PARTITION
+ help
+ MMC partition name used to save environment variables.
+ If this variable is unset, u-boot will try to get the env partition name
+ from the device-tree's /config node.
+
config ENV_MMC_USE_DT
bool "Read partition name and offset in DT"
depends on ENV_IS_IN_MMC && OF_CONTROL