I'm trying to build a small kernel image with the minimal requirements based on the hardware I have in my laptop. Any idea about how to deal with that? How can I get info about my hardware and somehow translate it in kernel configuration settings?
P.S. I've used lspci -k to have a list of the PCI device drivers in use. I used it to configure the kernel, but it helps only for the PCI devices. Is there any similar command for the other devices?