* what is the rationale for all ethernet device vendors being "default y"?
@ 2016-05-04 12:07 Robert P. J. Day
2016-05-04 12:42 ` Bjørn Mork
0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2016-05-04 12:07 UTC (permalink / raw)
To: kernelnewbies
just noticed that on my x86 system, when i do a:
$ make defconfig
under "Ethernet driver support", all the top-level vendor choices
(3com, adaptec and so on) all have Kconfig entries with:
default y
reasonably, for each vendor, all of their cards are not "default y"
(that would be kind of silly), but what is the logic behind making
each vendor selection "default y"?
i ask because i'm putting together some kernel configuration
fragments that will contribute to a final .config file and, because of
all that "default y" stuff, i explicitly have to add "is not set"
lines to my fragments to turn off all the vendors in which i have no
interest.
admittedly, as i read it, leaving them as "default y" doesn't seem
to generate any additional code unless you actually select a board
from that vendor; still, is there a reason the Kconfig files are set
up the way they are?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* what is the rationale for all ethernet device vendors being "default y"?
2016-05-04 12:07 what is the rationale for all ethernet device vendors being "default y"? Robert P. J. Day
@ 2016-05-04 12:42 ` Bjørn Mork
2016-05-04 12:44 ` Robert P. J. Day
2016-05-04 13:05 ` Robert P. J. Day
0 siblings, 2 replies; 4+ messages in thread
From: Bjørn Mork @ 2016-05-04 12:42 UTC (permalink / raw)
To: kernelnewbies
"Robert P. J. Day" <rpjday@crashcourse.ca> writes:
> just noticed that on my x86 system, when i do a:
>
> $ make defconfig
>
> under "Ethernet driver support", all the top-level vendor choices
> (3com, adaptec and so on) all have Kconfig entries with:
>
> default y
>
> reasonably, for each vendor, all of their cards are not "default y"
> (that would be kind of silly), but what is the logic behind making
> each vendor selection "default y"?
To avoid introducing build regressions with the introduction of these
directories:
http://lists.openwall.net/netdev/2011/08/23/41
This is because these directories were retro-fitted to the Kbuild system
for most ethernet drivers.
Bj?rn
^ permalink raw reply [flat|nested] 4+ messages in thread
* what is the rationale for all ethernet device vendors being "default y"?
2016-05-04 12:42 ` Bjørn Mork
@ 2016-05-04 12:44 ` Robert P. J. Day
2016-05-04 13:05 ` Robert P. J. Day
1 sibling, 0 replies; 4+ messages in thread
From: Robert P. J. Day @ 2016-05-04 12:44 UTC (permalink / raw)
To: kernelnewbies
On Wed, 4 May 2016, Bj?rn Mork wrote:
> "Robert P. J. Day" <rpjday@crashcourse.ca> writes:
>
> > just noticed that on my x86 system, when i do a:
> >
> > $ make defconfig
> >
> > under "Ethernet driver support", all the top-level vendor choices
> > (3com, adaptec and so on) all have Kconfig entries with:
> >
> > default y
> >
> > reasonably, for each vendor, all of their cards are not "default y"
> > (that would be kind of silly), but what is the logic behind making
> > each vendor selection "default y"?
>
> To avoid introducing build regressions with the introduction of these
> directories:
> http://lists.openwall.net/netdev/2011/08/23/41
>
> This is because these directories were retro-fitted to the Kbuild system
> for most ethernet drivers.
ah, makes perfect sense, thanks.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* what is the rationale for all ethernet device vendors being "default y"?
2016-05-04 12:42 ` Bjørn Mork
2016-05-04 12:44 ` Robert P. J. Day
@ 2016-05-04 13:05 ` Robert P. J. Day
1 sibling, 0 replies; 4+ messages in thread
From: Robert P. J. Day @ 2016-05-04 13:05 UTC (permalink / raw)
To: kernelnewbies
On Wed, 4 May 2016, Bj?rn Mork wrote:
> "Robert P. J. Day" <rpjday@crashcourse.ca> writes:
>
> > just noticed that on my x86 system, when i do a:
> >
> > $ make defconfig
> >
> > under "Ethernet driver support", all the top-level vendor choices
> > (3com, adaptec and so on) all have Kconfig entries with:
> >
> > default y
> >
> > reasonably, for each vendor, all of their cards are not "default y"
> > (that would be kind of silly), but what is the logic behind making
> > each vendor selection "default y"?
>
> To avoid introducing build regressions with the introduction of these
> directories:
> http://lists.openwall.net/netdev/2011/08/23/41
>
> This is because these directories were retro-fitted to the Kbuild system
> for most ethernet drivers.
so am i correct in concluding that, if i'm working with kernel
config fragments, there is no need to add "# ... is not set" lines to
my fragments since, without an actual selected board, all those
"default y" vendor settings have no effect?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-04 13:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-04 12:07 what is the rationale for all ethernet device vendors being "default y"? Robert P. J. Day
2016-05-04 12:42 ` Bjørn Mork
2016-05-04 12:44 ` Robert P. J. Day
2016-05-04 13:05 ` Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).