From: Daniel Drake <dsd@gentoo.org>
To: gentoo-releng@lists.gentoo.org
Subject: Re: [gentoo-releng] Automating the process of building kernel pci drivers
Date: Tue, 19 Apr 2005 08:19:12 +0100 [thread overview]
Message-ID: <4264B0F0.4090904@gentoo.org> (raw)
In-Reply-To: <426479D2.1010206@securesystem.info>
Chris White wrote:
> Here's a proposal I had after talking over with some kernel devs and
> plasmaroo (since he works on genkernel):
Kernel hackers have been thinking about this for eternities but have never
come up with a perfect solution.
Here's one problem I can see:
http://sosdg.org/~coywolf/lxr/source/drivers/ide/pci/amd74xx.c#L504
You can see in that table, that support for certain devices depends on the
CONFIG_BLK_DEV_IDE_SATA option. When you do your first-pass, presumably using
a config where every PCI-related option is selected, you'll get the amd74xx
driver providing support for those devices. Your script needs to be able to
detect that support for that particular device is *also* dependant on that
option, otherwise it wouldn't be selected when the users build.
[ This is ignoring the fact that there's another driver for this hardware in
the kernel. I'm sure there are other drivers which genuinely depend on certain
other config options for device support ]
Which brings up the next question, once the utility has figured out that I
need modules including snd-intel8x0, amd74xx, forcedeth, how is it going to
then deduce that the options required are CONFIG_SND_INTEL8X0,
CONFIG_BLK_DEV_AMD74XX and CONFIG_FORCEDETH?
Also, the clashing problem.. Drivers such as 8139cp and 8139too support the
same PCI devices, but you can't figure out which driver is useful until you
probe the hardware. It's usually safe to build both. But when you come to
other situations, such as sk98lin vs skge (almost identical device tables),
you are only ever going to want one or the other.
Daniel
--
gentoo-releng@gentoo.org mailing list
next prev parent reply other threads:[~2005-04-19 7:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-19 3:24 [gentoo-releng] Automating the process of building kernel pci drivers Chris White
2005-04-19 7:19 ` Daniel Drake [this message]
2005-04-19 13:08 ` Chris Gianelloni
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=4264B0F0.4090904@gentoo.org \
--to=dsd@gentoo.org \
--cc=gentoo-releng@lists.gentoo.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