Re: detect devices automatically when compiling?

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

 



aq <aquynh@xxxxxxxxx> writes:

> hello,
>
> I always find difficult to compile the kernel. The trouble is: there
> are too many device drivers available in the kernel source, and the
> process of compiling (like "make menuconfig") renders all the devices
> for the user to choose. And it is really confusing since chances are
> that people dont know which devices are available in their machine, so
> they dont know which device drivers should be selected to compile
> (otherwise if they choose everything to make sure the kernel works,
> the binary kernel would be too big).

Not if they compile all the drivers as loadable modules.

> I think it would be very nice for "make menuconfig" first trying to
> detect what devices are available in the machine, then it "optimize"
> the selection of drivers to be compiled. After that user can refine
> what they want or not in the kernel.
>
> Is there any way to do that kind of thing ?

Yes, you could do that.  Probably nobody has because it would be
difficult and/or error prone, while it's easy to build more modules
than you need.  The ones that aren't needed never get loaded.

Don't let me stop you, though.  You could use lcpci and dmesg to get a
starting idea of what the system has.

-- 
  Ed L Cashin <ecashin@xxxxxxxxxx>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux