Re: [PATCH v2] USB: don't build PCI quirks if USB support isn't configured

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

 



On Thu, 23 Apr 2015, Tal Shorer wrote:

> Why is drivers/usb/Makefile even read when CONFIG_USB is not set?

CONFIG_USB means that the kernel will support host-side USB.  But 
drivers/usb and the directories underneath it also contain drivers for 
peripheral-side USB.  Therefore the Makefiles in those directories must 
be read even when CONFIG_USB is not set.

On the other hand, it would make sense to skip drivers/usb/Makefile 
when CONFIG_USB_SUPPORT is not set.  But that would have to be a 
separate patch.

> Won't it make more sense to throw the line
> obj-$(CONFIG_PCI) += usb/
> from drivers/Makfile?

All of the existing lines referencing usb/ could be replaced by a 
single line depending on CONFIG_USB_SUPPORT.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux