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