From: Boris Brezillon <boris.brezillon@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 22/24] cmd: make all MTD commands depend on MTD
Date: Thu, 29 Nov 2018 00:59:42 +0100 [thread overview]
Message-ID: <20181129005942.656d664d@bbrezillon> (raw)
In-Reply-To: <20181128230800.13292-23-miquel.raynal@bootlin.com>
On Thu, 29 Nov 2018 00:07:58 +0100
Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> Defconfigs have been fixed, now we can add proper dependencies in
> Kconfig.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
> cmd/Kconfig | 8 +++++++-
> drivers/mtd/Kconfig | 1 +
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> 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
>
> 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.
>
> @@ -915,6 +917,7 @@ config CMD_MMC_SPI
>
> 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
>
> config CMD_SF
> bool "sf"
> + depends on MTD
The SF cmd completely bypasses the MTD framework, so this one is not
needed (yet).
> help
> SPI Flash support
>
> +if CMD_SF
> config CMD_SF_TEST
> bool "sf test - Allow testing of SPI flash"
> help
> @@ -1027,6 +1032,7 @@ config CMD_SF_TEST
> Mbps (Million Bits Per Second). This value should approximately
> equal the SPI bus speed for a single-bit-wide SPI bus, assuming
> everything is working properly.
> +endif
>
> config CMD_SPI
> bool "sspi"
> @@ -1733,7 +1739,7 @@ config CMD_JFFS2
>
> config CMD_MTDPARTS
> bool "MTD partition support"
> - select MTD_DEVICE if (CMD_NAND || NAND)
> + depends on MTD
> help
> MTD partitioning tool support.
> It is strongly encouraged to avoid using this command
> diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
> index 345046c2a6..0832f5b411 100644
> --- a/drivers/mtd/Kconfig
> +++ b/drivers/mtd/Kconfig
> @@ -19,6 +19,7 @@ config DM_MTD
>
> config MTD_NOR_FLASH
> bool "Enable parallel NOR flash support"
> + depends on MTD
> help
> Enable support for parallel NOR flash.
>
next prev parent reply other threads:[~2018-11-28 23:59 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-28 23:07 [U-Boot] [PATCH v2 00/24] MTD defconfigs/Kconfigs/Makefiles heavy cleanup Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 01/24] Makefile: move MTD-related lines in coherent Makefiles Miquel Raynal
2018-11-28 23:46 ` Boris Brezillon
2018-11-29 7:57 ` Miquel Raynal
2018-11-29 9:16 ` Miquel Raynal
2018-11-29 9:21 ` Boris Brezillon
2018-11-28 23:07 ` [U-Boot] [PATCH v2 02/24] mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 03/24] mtd: rename CONFIG_MTD -> CONFIG_DM_MTD Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 04/24] mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD Miquel Raynal
2018-11-28 23:49 ` Boris Brezillon
2018-11-28 23:07 ` [U-Boot] [PATCH v2 05/24] mtd: ensure MTD is compiled when there is a NOR flash Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 06/24] mtd: ensure MTD/the raw NAND core are compiled when there is a NAND flash Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 07/24] mtd: ensure MTD is compiled when there is a SPI NOR flash Miquel Raynal
2018-11-28 23:52 ` Boris Brezillon
2018-11-29 8:06 ` Miquel Raynal
2018-12-04 14:35 ` Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 08/24] mtd: ensure UBI is compiled when using fastmap Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 09/24] mtd: ensure MTD is compiled when UBI is used Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 10/24] mtd: ensure UBI is compiled when CMD_UBI is selected Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 11/24] mtd: ensure UBI is compiled when ENV_IS_IN_UBI " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 12/24] mtd: ensure MTD_RAW_NAND is compiled when ENV_IS_IN_NAND " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 13/24] mtd: ensure MTD is compiled when ENV_IS_IN_FLASH " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 14/24] mtd: ensure CMD_NAND is compiled when its options are selected Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 15/24] configs: remove raw NAND core from k2g defconfigs Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 16/24] configs: remove MTD support from bcm11130 and M54418TWR defconfigs Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 17/24] mtd: nand: add includes in NAND core to avoid warnings Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 18/24] mtd: rawnand: compile-in the NAND core Miquel Raynal
2018-11-28 23:57 ` Boris Brezillon
2018-12-04 14:33 ` Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 19/24] dfu: add dependency on " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 20/24] mtd: nand: remove dependency on commands in Kconfig Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 21/24] mtd: ubi: remove dependency on command " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 22/24] cmd: make all MTD commands depend on MTD Miquel Raynal
2018-11-28 23:59 ` Boris Brezillon [this message]
2018-12-04 14:34 ` Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 23/24] mtd: simplify Makefile Miquel Raynal
2018-11-28 23:08 ` [U-Boot] [PATCH v2 24/24] mtd: drop CONFIG_MTD_PARTITIONS Miquel Raynal
2018-11-29 0:05 ` Boris Brezillon
2018-12-04 14:49 ` Miquel Raynal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181129005942.656d664d@bbrezillon \
--to=boris.brezillon@bootlin.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox