diff mbox series

[U-Boot,v3,22/28] mtd: nand: remove dependency on commands in Kconfig

Message ID 20181204235714.11805-23-miquel.raynal@bootlin.com
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series MTD defconfigs/Kconfigs/Makefiles heavy cleanup | expand

Commit Message

Miquel Raynal Dec. 4, 2018, 11:57 p.m. UTC
Now that the defconfigs have been fixed, remove the dependencies on
commands in Kconfig. The necessary symbols are enabled so this will
not break anything.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 drivers/mtd/nand/Makefile | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Boris Brezillon Dec. 5, 2018, 10:29 a.m. UTC | #1
On Wed,  5 Dec 2018 00:57:08 +0100
Miquel Raynal <miquel.raynal@bootlin.com> wrote:

> Now that the defconfigs have been fixed, remove the dependencies on
> commands in Kconfig.

That's not what I'm seeing in this diff ;-).

> The necessary symbols are enabled so this will
> not break anything.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
>  drivers/mtd/nand/Makefile | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
> index 99ca69ef95..e5849dc02a 100644
> --- a/drivers/mtd/nand/Makefile
> +++ b/drivers/mtd/nand/Makefile
> @@ -2,7 +2,5 @@
>  
>  nandcore-objs := core.o bbt.o
>  obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
> -ifneq (,$(findstring y,$(CONFIG_CMD_NAND)$(CONFIG_CMD_MTD)))
> -obj-y += raw/
> -endif
> +obj-$(CONFIG_MTD_RAW_NAND) += raw/
>  obj-$(CONFIG_MTD_SPI_NAND) += spi/
diff mbox series

Patch

diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index 99ca69ef95..e5849dc02a 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -2,7 +2,5 @@ 
 
 nandcore-objs := core.o bbt.o
 obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
-ifneq (,$(findstring y,$(CONFIG_CMD_NAND)$(CONFIG_CMD_MTD)))
-obj-y += raw/
-endif
+obj-$(CONFIG_MTD_RAW_NAND) += raw/
 obj-$(CONFIG_MTD_SPI_NAND) += spi/