From: Miquel Raynal <miquel.raynal@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 16/28] configs: move CONFIG_MTD in defconfigs when set in arch includes
Date: Wed, 5 Dec 2018 12:25:07 +0100 [thread overview]
Message-ID: <20181205122507.361e08ad@xps13> (raw)
In-Reply-To: <20181205111728.616bfad6@bbrezillon>
Hi Boris,
Boris Brezillon <boris.brezillon@bootlin.com> wrote on Wed, 5 Dec 2018
11:17:28 +0100:
> On Wed, 5 Dec 2018 00:57:02 +0100
> Miquel Raynal <miquel.raynal@bootlin.com> wrote:
>
> > Let's be consistent and always declare CONFIG_MTD from the defconfig
> > file when needed.
> >
> > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
>
> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
>
> One comment below.
>
> > ---
> > configs/socfpga_stratix10_defconfig | 1 +
> > configs/turris_mox_defconfig | 1 +
> > include/configs/mvebu_armada-37xx.h | 1 -
> > include/configs/socfpga_stratix10_socdk.h | 1 -
> > 4 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig
> > index 5f3d733a8b..292dbd6973 100644
> > --- a/configs/socfpga_stratix10_defconfig
> > +++ b/configs/socfpga_stratix10_defconfig
> > @@ -38,6 +38,7 @@ CONFIG_DM_I2C=y
> > CONFIG_SYS_I2C_DW=y
> > CONFIG_DM_MMC=y
> > CONFIG_MMC_DW=y
> > +CONFIG_MTD=y
> > CONFIG_SPI_FLASH=y
> > CONFIG_SPI_FLASH_BAR=y
> > CONFIG_SPI_FLASH_SPANSION=y
> > diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig
> > index 749ed31acd..13e2af7e1b 100644
> > --- a/configs/turris_mox_defconfig
> > +++ b/configs/turris_mox_defconfig
> > @@ -42,6 +42,7 @@ CONFIG_DM_MMC=y
> > CONFIG_MMC_SDHCI=y
> > CONFIG_MMC_SDHCI_SDMA=y
> > CONFIG_MMC_SDHCI_XENON=y
> > +CONFIG_MTD=y
> > CONFIG_SPI_FLASH=y
> > CONFIG_SPI_FLASH_MACRONIX=y
> > CONFIG_SPI_FLASH_SPANSION=y
> > diff --git a/include/configs/mvebu_armada-37xx.h b/include/configs/mvebu_armada-37xx.h
> > index f93ab0f830..640267c9c2 100644
> > --- a/include/configs/mvebu_armada-37xx.h
> > +++ b/include/configs/mvebu_armada-37xx.h
> > @@ -64,7 +64,6 @@
> > #define CONFIG_SF_DEFAULT_SPEED 1000000
> > #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
> > #define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE
> > -#define CONFIG_MTD /* needed for mtdparts commands */
> > #define CONFIG_MTD_PARTITIONS /* required for UBI partition support */
> >
> > /* Environment in SPI NOR flash */
> > diff --git a/include/configs/socfpga_stratix10_socdk.h b/include/configs/socfpga_stratix10_socdk.h
> > index 22e1dc84a1..967784e379 100644
> > --- a/include/configs/socfpga_stratix10_socdk.h
> > +++ b/include/configs/socfpga_stratix10_socdk.h
> > @@ -76,7 +76,6 @@
> > #endif /* CONFIG_ENV_IS_IN_SPI_FLASH */
> >
> > #ifndef CONFIG_SPL_BUILD
> > -#define CONFIG_MTD
> > #define CONFIG_MTD_PARTITIONS
>
> Do you get rid of CONFIG_MTD_PARTITIONS at some point?
Not anymore. I know it would be preferable to push all MTD
configurations in defconfigs but precisely in this case the definition
is enclosed in a "#ifndef CONFIG_SPL_BUILD" condition, which makes the
move to defconfig inconsistent. This is the reason why I decided to
keep this definition in header files for now (another one in Armada
37xx header).
>
> > #define MTDIDS_DEFAULT "nor0=ff705000.spi.0"
> > #endif /* CONFIG_SPL_BUILD */
>
Thanks,
Miquèl
next prev parent reply other threads:[~2018-12-05 11:25 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-04 23:56 [U-Boot] [PATCH v3 00/28] MTD defconfigs/Kconfigs/Makefiles heavy cleanup Miquel Raynal
2018-12-04 23:56 ` [U-Boot] [PATCH v3 01/28] Makefile: move MTD-related lines in coherent Makefiles Miquel Raynal
2018-12-05 8:44 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 02/28] mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND Miquel Raynal
2018-12-05 8:37 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 03/28] mtd: rename CONFIG_MTD -> CONFIG_DM_MTD Miquel Raynal
2018-12-05 8:38 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 04/28] mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD Miquel Raynal
2018-12-05 8:38 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 05/28] mtd: ensure MTD is compiled when there is a NOR flash Miquel Raynal
2018-12-05 8:39 ` Boris Brezillon
2018-12-05 12:11 ` Wolfgang Denk
2018-12-04 23:56 ` [U-Boot] [PATCH v3 06/28] mtd: ensure MTD/the raw NAND core are compiled when there is a NAND flash Miquel Raynal
2018-12-05 9:20 ` Boris Brezillon
2018-12-05 12:09 ` Wolfgang Denk
2018-12-04 23:56 ` [U-Boot] [PATCH v3 07/28] mtd: ensure MTD is compiled when there is a SPI NOR flash using MTD Miquel Raynal
2018-12-05 5:58 ` Vignesh R
2018-12-05 7:43 ` Miquel Raynal
2018-12-05 9:21 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 08/28] mtd: ensure UBI is compiled when using fastmap Miquel Raynal
2018-12-05 9:33 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 09/28] mtd: ensure MTD is compiled when UBI is used Miquel Raynal
2018-12-05 9:34 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 10/28] mtd: ensure UBI is compiled when CMD_UBI is selected Miquel Raynal
2018-12-05 9:35 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 11/28] mtd: ensure UBI is compiled when ENV_IS_IN_UBI " Miquel Raynal
2018-12-05 9:35 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 12/28] mtd: ensure MTD_RAW_NAND is compiled when ENV_IS_IN_NAND " Miquel Raynal
2018-12-05 9:37 ` Boris Brezillon
2018-12-04 23:56 ` [U-Boot] [PATCH v3 13/28] mtd: ensure MTD is compiled when ENV_IS_IN_FLASH " Miquel Raynal
2018-12-05 9:46 ` Boris Brezillon
2018-12-05 12:06 ` Wolfgang Denk
2018-12-05 14:32 ` Miquel Raynal
2018-12-05 15:40 ` Schrempf Frieder
2018-12-06 8:10 ` Wolfgang Denk
2018-12-06 8:06 ` Wolfgang Denk
2018-12-06 9:00 ` Boris Brezillon
2018-12-06 9:32 ` Wolfgang Denk
2018-12-06 15:23 ` Miquel Raynal
2018-12-06 15:59 ` Tom Rini
2018-12-06 16:19 ` Simon Goldschmidt
2018-12-09 8:41 ` Vignesh R
2018-12-07 11:09 ` Miquel Raynal
2018-12-07 14:07 ` Tom Rini
2018-12-08 15:42 ` Wolfgang Denk
2018-12-04 23:57 ` [U-Boot] [PATCH v3 14/28] mtd: ensure CMD_NAND is compiled when its options are selected Miquel Raynal
2018-12-05 10:01 ` Boris Brezillon
2018-12-04 23:57 ` [U-Boot] [PATCH v3 15/28] mtd: ensure MTD is compiled when CMD_MTDPARTS is selected Miquel Raynal
2018-12-05 10:12 ` Boris Brezillon
2018-12-04 23:57 ` [U-Boot] [PATCH v3 16/28] configs: move CONFIG_MTD in defconfigs when set in arch includes Miquel Raynal
2018-12-05 10:17 ` Boris Brezillon
2018-12-05 10:53 ` Miquel Raynal
2018-12-05 11:25 ` Miquel Raynal [this message]
2018-12-04 23:57 ` [U-Boot] [PATCH v3 17/28] configs: remove raw NAND core from k2g defconfigs Miquel Raynal
2018-12-05 10:19 ` Boris Brezillon
2018-12-05 10:55 ` Miquel Raynal
2018-12-04 23:57 ` [U-Boot] [PATCH v3 18/28] configs: remove MTD support from bcm11130 and M54418TWR defconfigs Miquel Raynal
2018-12-05 10:21 ` Boris Brezillon
2018-12-04 23:57 ` [U-Boot] [PATCH v3 19/28] mtd: nand: add includes in NAND core to avoid warnings Miquel Raynal
2018-12-05 10:26 ` Boris Brezillon
2018-12-04 23:57 ` [U-Boot] [PATCH v3 20/28] dfu: add dependency on the NAND core Miquel Raynal
2018-12-05 10:27 ` Boris Brezillon
2018-12-04 23:57 ` [U-Boot] [PATCH v3 21/28] mtd: nor: NOR flashes depend on MTD Miquel Raynal
2018-12-05 10:31 ` Boris Brezillon
2018-12-05 11:20 ` Miquel Raynal
2018-12-05 12:13 ` Wolfgang Denk
2018-12-04 23:57 ` [U-Boot] [PATCH v3 22/28] mtd: nand: remove dependency on commands in Kconfig Miquel Raynal
2018-12-05 10:29 ` Boris Brezillon
2018-12-04 23:57 ` [U-Boot] [PATCH v3 23/28] mtd: ubi: remove dependency on command " Miquel Raynal
2018-12-05 10:39 ` Boris Brezillon
2018-12-04 23:57 ` [U-Boot] [PATCH v3 24/28] cmd: mtdparts: show Kconfig options only if the command is selected Miquel Raynal
2018-12-05 10:16 ` Boris Brezillon
2018-12-04 23:57 ` [U-Boot] [PATCH v3 25/28] cmd: nand/sf: isolate legacy code Miquel Raynal
2018-12-05 10:37 ` Boris Brezillon
2018-12-05 10:53 ` Thomas Petazzoni
2018-12-05 11:15 ` Miquel Raynal
2018-12-04 23:57 ` [U-Boot] [PATCH v3 26/28] cmd: make MTD commands depend on MTD Miquel Raynal
2018-12-05 10:42 ` Boris Brezillon
2018-12-05 10:48 ` Miquel Raynal
2018-12-05 10:49 ` Boris Brezillon
2018-12-04 23:57 ` [U-Boot] [PATCH v3 27/28] mtd: simplify Makefile Miquel Raynal
2018-12-04 23:57 ` [U-Boot] [PATCH v3 28/28] mtd: properly handle SPL kbuild lines Miquel Raynal
2018-12-05 10:47 ` Boris Brezillon
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=20181205122507.361e08ad@xps13 \
--to=miquel.raynal@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.