From: Greg KH <gregkh@linuxfoundation.org>
To: Jean Delvare <jdelvare@suse.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Michal Marek <mmarek@suse.cz>
Subject: Re: Hardware dependencies in Kconfig
Date: Mon, 14 Apr 2014 12:11:43 -0700 [thread overview]
Message-ID: <20140414191143.GA26864@kroah.com> (raw)
In-Reply-To: <20140414145359.48b7337c@endymion.delvare>
On Mon, Apr 14, 2014 at 02:53:59PM +0200, Jean Delvare wrote:
> Hi all,
>
> Configuring kernels from scratch has become an incredibly long and
> tedious task. The reason is that the number of drivers and options has
> exploded in the past few years. Which in itself is great - Linux is
> successful, yeah! - but the side effects must be dealt with.
> 6000-line .config files are no fun.
>
> Earlier today, I found that NET_CADENCE is set in my x86-64 kernel
> configuration. The two ethernet drivers below this menu are for ARM
> machines. I really shouldn't be asked about that on x86-64. I just sent
> a patch addressing this specific issue, which follows about 50 similar
> patches from me for similar issues in various subsystems. But I can't
> do all of that by myself, this is too much work quantitatively, and I
> am not always the best person to find out the proper hardware
> dependencies that should be added.
Ideally, the arch doesn't matter at all for a driver, only the
infrastructure the driver depends on does. So perhaps the
"infrastructure" dependancy should be added for the drivers that you
feel are only present on ARM platforms? Are these all platform devices?
> I would like to call for proper hardware dependencies to become a
> general trend: every new hardware-specific driver which is added to the
> kernel should depend on ($hardware || COMPILE_TEST), so as to make it
> clear right away, which type of hardware is expected to need the driver
> in question.
Adding more COMPILE_TEST dependancies for platform drivers would be
wonderful to have, and make your life a little bit easier. Other than
that, a simple 'm' selection for a distro config should be fine :)
thanks,
greg k-h
next prev parent reply other threads:[~2014-04-14 19:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-14 12:53 Jean Delvare
2014-04-14 13:06 ` Josh Boyer
2014-04-14 19:11 ` Greg KH [this message]
2014-04-14 19:59 ` Josh Boyer
2014-04-15 4:53 ` Greg KH
2014-04-15 7:27 ` Jean Delvare
2014-04-14 21:12 ` Jean Delvare
2014-04-15 4:52 ` Greg KH
2014-04-15 10:26 ` Michal Marek
2014-04-15 10:54 ` Jean Delvare
2014-04-15 17:36 ` Randy Dunlap
2014-04-15 11:50 ` Josh Boyer
2014-04-15 15:24 ` Greg KH
2014-04-15 15:34 ` Josh Boyer
2014-04-22 13:42 ` Jean Delvare
2014-04-29 9:23 ` Pavel Machek
2014-04-23 17:45 ` Generating .config from device tree [was Re: Hardware dependencies in Kconfig] Pavel Machek
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=20140414191143.GA26864@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=akpm@linux-foundation.org \
--cc=jdelvare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
--cc=torvalds@linux-foundation.org \
/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
all inboxes | Powered by JetHome®