aboutsummaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2019-10-03 19:50:12 +0200
committerTom Rini <trini@konsulko.com>2019-12-04 13:26:17 -0500
commit00e270473e6d7b8610a4abac739509d1d8db22b5 (patch)
tree820f04e9458f76d3d3fa481b0d88d87e05f414fb /env
parentf344fb1540eb384ca2a82677fc2cd2728f31b225 (diff)
downloadu-boot-00e270473e6d7b8610a4abac739509d1d8db22b5.zip
u-boot-00e270473e6d7b8610a4abac739509d1d8db22b5.tar.gz
u-boot-00e270473e6d7b8610a4abac739509d1d8db22b5.tar.bz2
mtd: ensure UBI is compiled when ENV_IS_IN_UBI is selected
UBI must be enabled when the environment is in UBI. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'env')
-rw-r--r--env/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig
index bc88c59..ed12609 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -366,6 +366,8 @@ config ENV_SPI_MODE
config ENV_IS_IN_UBI
bool "Environment in a UBI volume"
depends on !CHAIN_OF_TRUST
+ depends on MTD_UBI
+ depends on CMD_UBI
help
Define this if you have an UBI volume that you want to use for the
environment. This has the benefit of wear-leveling the environment