From 00e270473e6d7b8610a4abac739509d1d8db22b5 Mon Sep 17 00:00:00 2001 From: Miquel Raynal Date: Thu, 3 Oct 2019 19:50:12 +0200 Subject: 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 Reviewed-by: Boris Brezillon --- env/Kconfig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'env') diff --git a/env/Kconfig b/env/Kconfig index bc88c59cd5..ed12609f6a 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 -- cgit v1.2.3