[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automatically installing hardware specific packages

On Wed, 2010-06-16 at 21:33 +0200, Petter Reinholdtsen wrote:
> [Petter Reinholdtsen]
> > Are there better ways to do this?  Anyone willing to work on it?
> One alternative would be to move the information out of the
> discover-data package, and into the Packages file instead, similar to
> how Iceweasel[1] and Moonlight[2] might find their plugins and codec
> packages, and store USB and PCI ids there.
>   [1] https://wiki.ubuntu.com/FlashExperienceIntrepid
>   [2] http://wiki.debian.org/Teams/DebianMonoGroup/Moonlight
> The idea I got was to add headers like this to the package supporting
> specific hardware, and use this information to look up the USB and PCI
> ids present in the machine:
>   Xb-Hardware-Bus-PCI: 1af4:1002
>   Xb-Hardware-Bus-USB: 1d6b:0001
> This way the build system for the X video card packages could extract
> the list of PCI devices supported by the driver and include it in the
> control file of the package, and the RAID controller packages could
> list the supported hardware ids too.  It would get rid of the central
> hardware->package directory, and probably scale better than the
> discover-pkginstall approach.

This probably makes some sense for userland drivers that bind to
specific PCI and USB devices, and for any OOT kernel drivers.  For
applications and userland drivers that depend on specific kernel drivers
it would make more sense for the package to specify the kernel driver(s)
and for the package manager to look at which drivers have been loaded
and bound to devices.


Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: