From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/6] mmc: complete the unfinished move of CONFIG_MMC
Date: Tue, 6 Dec 2016 08:03:48 -0500 [thread overview]
Message-ID: <20161206130348.GK4248@bill-the-cat> (raw)
In-Reply-To: <CAK7LNATd+OtLnvK1GuZ-RoWOvvTv0j8P9oiCmnzqYkqxR8yRKA@mail.gmail.com>
On Tue, Dec 06, 2016 at 03:25:46PM +0900, Masahiro Yamada wrote:
> Hi Tom,
>
> 2016-12-06 1:02 GMT+09:00 Tom Rini <trini@konsulko.com>:
> > On Sun, Dec 04, 2016 at 10:23:10PM +0900, Masahiro Yamada wrote:
> >
> >> Commit 7a777f6d6f35 ("mmc: Add generic Kconfig option") created
> >> a Kconfig entry for this option without any actual moves, then
> >> commit 44c798799f66 ("sunxi: Use Kconfig CONFIG_MMC") moved the
> >> instances only for SUNXI.
> >>
> >> We generally do not like such partial moves. This kind of work
> >> is automated by tools/moveconfig.py, so it is pretty easy to
> >> complete this move.
> >>
> >> This commit was created as follows:
> >>
> >> [1] remove "depends on ARCH_SUNXI || SANDBOX" and
> >> reword the prompt and help message (copied from Linux)
> >> [2] run 'tools/moveconfig MMC'
> >>
> >> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> > [snip]
> >> 801 files changed, 630 insertions(+), 197 deletions(-)
> >
> > OK. I think this means that we want MMC to be either default y or
> > default y if ARM || POWERPC || SANDBOX, to cut down on the size here.
>
>
> Nit. s/POWERPC/PPC/
> (Unfortunately, U-Boot historically uses a different
> config for PowerPC.)
Ah right.
> I tried your suggestion.
> It is true that 625 touched defconfigs were decreased to 389,
> but do you think this is a really good idea?
>
> Theoretically, nothing of MMC
> is related to ARM, PowerPC, Sandbox.
>
> I think this is shortening defconfigs
> for the purpose of shortening.
Yes, it is for the purpose of shortening the configs.
> BTW, do you know that
> Kbuild subsystem is discussing a new keyword "imply" ?
>
> https://patchwork.kernel.org/patch/9422463/
>
>
> I am thinking it, if accepted, will be a better solution than
> such unrelated "depends on <ARCH>" or "depends on <SOC>".
Adding "imply" could help here I think, yes. The problem is that I want
to make the defaults in Kconfig produce a reasonable defconfig rather
than require each new defconfig to require a lot of information to
produce a reasonable binary. Looking at the imply examples I think that
yes, we could probably get away with doing things like:
arch/Kconfig:
config ARM
bool "ARM Architecture"
...
imply MMC
imply DISPLAY_BOARDINFO
imply DISPLAY_CPUINFO
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161206/b89b465d/attachment.sig>
next prev parent reply other threads:[~2016-12-06 13:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-04 13:23 [U-Boot] [PATCH 0/6] mmc: move some config options to Kconfig Masahiro Yamada
2016-12-04 13:23 ` [U-Boot] [PATCH 1/6] Sync defconfig files by savedefconfig Masahiro Yamada
2016-12-04 13:23 ` [U-Boot] [PATCH 2/6] mmc: complete the unfinished move of CONFIG_MMC Masahiro Yamada
2016-12-05 16:02 ` Tom Rini
2016-12-06 6:25 ` Masahiro Yamada
2016-12-06 13:03 ` Tom Rini [this message]
2016-12-07 1:45 ` Masahiro Yamada
2016-12-04 13:23 ` [U-Boot] [PATCH 3/6] mmc: make MMC driver entries dependent on MMC Masahiro Yamada
2016-12-05 19:11 ` Tom Rini
2016-12-04 13:23 ` [U-Boot] [PATCH 4/6] mmc: move CONFIG_SDHCI to Kconfig, renaming to CONFIG_MMC_SDHCI Masahiro Yamada
2016-12-05 16:04 ` Tom Rini
2016-12-04 13:23 ` [U-Boot] [PATCH 5/6] mmc: move some SDHCI related options to Kconfig Masahiro Yamada
2016-12-05 19:10 ` Tom Rini
2016-12-07 9:04 ` Masahiro Yamada
2016-12-07 9:22 ` Jaehoon Chung
2016-12-07 12:52 ` Tom Rini
2016-12-04 13:23 ` [U-Boot] [PATCH 6/6] mmc: move MMC_SDHCI_IO_ACCESSORS " Masahiro Yamada
2016-12-05 19:11 ` Tom Rini
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=20161206130348.GK4248@bill-the-cat \
--to=trini@konsulko.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