From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Tue, 4 Dec 2018 15:34:30 +0100 Subject: [U-Boot] [PATCH v2 22/24] cmd: make all MTD commands depend on MTD In-Reply-To: <20181129005942.656d664d@bbrezillon> References: <20181128230800.13292-1-miquel.raynal@bootlin.com> <20181128230800.13292-23-miquel.raynal@bootlin.com> <20181129005942.656d664d@bbrezillon> Message-ID: <20181204153430.091fdcbe@xps13> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi Boris, Boris Brezillon wrote on Thu, 29 Nov 2018 00:59:42 +0100: > On Thu, 29 Nov 2018 00:07:58 +0100 > Miquel Raynal wrote: >=20 > > Defconfigs have been fixed, now we can add proper dependencies in > > Kconfig. > >=20 > > Signed-off-by: Miquel Raynal > > --- > > cmd/Kconfig | 8 +++++++- > > drivers/mtd/Kconfig | 1 + > > 2 files changed, 8 insertions(+), 1 deletion(-) > >=20 > > diff --git a/cmd/Kconfig b/cmd/Kconfig > > index e2973b3c51..717e814c56 100644 > > --- a/cmd/Kconfig > > +++ b/cmd/Kconfig > > @@ -868,6 +868,7 @@ config CMD_MMC_SWRITE > > =20 > > config CMD_MTD > > bool "mtd" > > + depends on MTD > > select MTD_PARTITIONS > > help > > MTD commands support. > > @@ -875,6 +876,7 @@ config CMD_MTD > > config CMD_NAND > > bool "nand" > > default y if NAND_SUNXI > > + depends on MTD_RAW_NAND > > help > > NAND support. > > =20 > > @@ -915,6 +917,7 @@ config CMD_MMC_SPI > > =20 > > config CMD_ONENAND > > bool "onenand - access to onenand device" > > + depends on MTD > > help > > OneNAND is a brand of NAND ('Not AND' gate) flash which provides > > various useful features. This command allows reading, writing, > > @@ -1014,9 +1017,11 @@ config CMD_SDRAM > > =20 > > config CMD_SF > > bool "sf" > > + depends on MTD =20 >=20 > The SF cmd completely bypasses the MTD framework, so this one is not > needed (yet). Sadly, yes. Ok I will remove any kind of new dependency on MTD for SF. Thanks, Miqu=C3=A8l