[PATCH] Fix makefile so that CONFIG_WDM and CONFIG_TMC work.

From: Andrew Lutomirski
Date: Tue Apr 28 2009 - 15:53:19 EST


From: Andy Lutomirski <amluto@xxxxxxxxx>

If CONFIG_USB_ACM and CONFIG_USB_PRINTER are not set, then
cdc-wdm and usbtmc won't get built.

Signed-off-by: Andy Lutomirski <amluto@xxxxxxxxx>

---

I hit this on a custom kernel for an embedded system with a TMC device.

diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile
index b2ceb4a..09b6783 100644
--- a/drivers/usb/Makefile
+++ b/drivers/usb/Makefile
@@ -26,6 +26,8 @@ obj-$(CONFIG_USB_WUSB) += wusbcore/

obj-$(CONFIG_USB_ACM) += class/
obj-$(CONFIG_USB_PRINTER) += class/
+obj-$(CONFIG_USB_WDM) += class/
+obj-$(CONFIG_USB_TMC) += class/

obj-$(CONFIG_USB_STORAGE) += storage/
obj-$(CONFIG_USB) += storage/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/