[U-Boot] [PATCH v3 13/28] mtd: ensure MTD is compiled when ENV_IS_IN_FLASH is selected

Boris Brezillon
2018-12-05T09:46:30Z

On Wed, 5 Dec 2018 00:56:59 +0100
Miquel Raynal <miquel.raynal@bootlin.com> wrote:

> MTD support must be enabled when the environment is in NOR.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
> configs/armadillo-800eva_defconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/configs/armadillo-800eva_defconfig b/configs/armadillo-800eva_defconfig
> index b1d923c069..45736a9b01 100644
> --- a/configs/armadillo-800eva_defconfig
> +++ b/configs/armadillo-800eva_defconfig
> @@ -32,6 +32,7 @@ CONFIG_CMD_PING=y
> # CONFIG_CMD_MISC is not set
> CONFIG_ENV_IS_IN_FLASH=y
> # CONFIG_MMC is not set
> +CONFIG_MTD=y

Don't we need CONFIG_MTD_NOR_FLASH too?

> CONFIG_SH_ETHER=y
> CONFIG_SCIF_CONSOLE=y
> CONFIG_OF_LIBFDT=y